*** mjsir911 has joined #novawebdev | 09:02 | |
*** replaceafill has joined #novawebdev | 09:18 | |
*** zOnny has joined #novawebdev | 09:52 | |
zOnny | hello replaceafill | 09:53 |
---|---|---|
replaceafill | hello zOnny | 09:56 |
zOnny | replaceafill: the views.py method works | 09:57 |
zOnny | replaceafill: I just wonder about all these tons of imports | 09:58 |
replaceafill | zOnny, cool | 09:58 |
replaceafill | zOnny, the function is very complex so those are needed | 09:58 |
zOnny | replaceafill: ok | 09:59 |
replaceafill | zOnny, your next task would be to simplify all those forms | 09:59 |
replaceafill | zOnny, and replace them with your own | 09:59 |
replaceafill | zOnny, yours should be simpler | 09:59 |
zOnny | replaceafill: you mean using forms.py ? | 10:01 |
replaceafill | zOnny, start with something simple | 10:06 |
replaceafill | zOnny, so you get the idea | 10:06 |
replaceafill | zOnny, can you hang out? | 10:06 |
zOnny | replaceafill: sure | 10:06 |
*** mjsir911 has joined #novawebdev | 10:26 | |
zOnny | replaceafill: https://gitlab.com/edzon.quinteros/libreorganize_events | 10:49 |
replaceafill | zOnny, thanks, cloning | 10:49 |
zOnny | replaceafill: I didn't give you permission | 10:50 |
zOnny | replaceafill: hold on | 10:50 |
replaceafill | zOnny, it's publice | 10:51 |
replaceafill | public* | 10:51 |
zOnny | replaceafill: but you will not clone as ssh | 10:51 |
replaceafill | zOnny, i did | 10:51 |
zOnny | replaceafill: -.- | 10:52 |
replaceafill | zOnny, sorry, back | 11:18 |
replaceafill | zOnny, starting to test | 11:18 |
zOnny | replaceafill: cool | 11:18 |
replaceafill | zOnny, got it | 11:21 |
replaceafill | zOnny, uncomment speaker_form and form_attendees | 11:22 |
zOnny | replaceafill: ok | 11:22 |
replaceafill | zOnny, let me know if it works after that | 11:22 |
replaceafill | zOnny, problem is that those forms are not added to the fields | 11:22 |
replaceafill | zOnny, but on submission they're built back | 11:23 |
replaceafill | zOnny, and django can't find the fields | 11:23 |
zOnny | replaceafill: It works | 11:24 |
replaceafill | zOnny, cool | 11:24 |
replaceafill | zOnny, now | 11:24 |
replaceafill | zOnny, try this diff in your forms.py | 11:24 |
replaceafill | class MyOrganizerForm(OrganizerForm): | 11:25 |
replaceafill | - pass | 11:25 |
replaceafill | 11:25 | |
replaceafill | + def __init__(self, *args, **kwargs): | 11:25 |
replaceafill | + super(MyOrganizerForm, self).__init__(*args, **kwargs) | 11:25 |
replaceafill | + del self.fields['description'] | 11:25 |
replaceafill | zOnny, that is, remove the pass | 11:25 |
replaceafill | zOnny, and add that __init__ definition | 11:25 |
zOnny | replaceafill: ok | 11:25 |
replaceafill | zOnny, that will get rid of the description field for the organizer | 11:25 |
replaceafill | zOnny, the rest of the form should work | 11:25 |
zOnny | replaceafill: cool! | 11:28 |
replaceafill | zOnny, so now you'll need to do the same with the rest of the forms | 11:29 |
replaceafill | zOnny, you can hide them entirely | 11:29 |
replaceafill | zOnny, like you did with speaker_form | 11:29 |
zOnny | replaceafill: in different classes, yes ? | 11:29 |
replaceafill | zOnny, just make sure you remove them from both places | 11:29 |
replaceafill | zOnny, yes | 11:30 |
zOnny | replaceafill: both places ? | 11:30 |
replaceafill | zOnny, hold on | 11:30 |
replaceafill | zOnny, place 1, forms rendered on GET: https://github.com/tendenci/tendenci/blob/master/tendenci/apps/events/views.py#L1434-L1442 | 11:31 |
replaceafill | zOnny, place 2, forms used for validation on POST: https://github.com/tendenci/tendenci/blob/master/tendenci/apps/events/views.py#L1215-L1223 | 11:31 |
replaceafill | zOnny, the problem you had was the speaker_form was commented on place 1, but not on place 2 | 11:32 |
zOnny | replaceafill: I see | 11:32 |
replaceafill | zOnny, so django tried to validate speaker data | 11:32 |
replaceafill | zOnny, and couldn't find any fields about it | 11:32 |
replaceafill | zOnny, so if try removing the "all day" checkbox | 11:33 |
replaceafill | zOnny, from EventForm | 11:33 |
replaceafill | zOnny, and so on | 11:33 |
zOnny | replaceafill: in this case I should commented both | 11:33 |
replaceafill | zOnny, yes | 11:33 |
zOnny | replaceafill: but the fields like location description | 11:33 |
replaceafill | zOnny, that's the PlaceForm | 11:34 |
zOnny | replaceafill: should be done the same as the speaker, yes ? | 11:34 |
replaceafill | zOnny, it depends if you want to get rid of the fields entirely | 11:34 |
replaceafill | zOnny, since you're just testing, you can commented out | 11:34 |
replaceafill | zOnny, for now | 11:34 |
replaceafill | zOnny, leaving only form_event, form_regconf and form_regconfpricing | 11:35 |
zOnny | replaceafill: but the are fields that need some labels only | 11:35 |
replaceafill | zOnny, hm? | 11:35 |
replaceafill | zOnny, don't understand that last sentence | 11:35 |
zOnny | replaceafill: hold on | 11:35 |
zOnny | replaceafill: I see | 11:37 |
replaceafill | zOnny, ok, i need to step away for a bit | 11:37 |
zOnny | replaceafill: it is done how I can merge it into ORA_dev ? | 11:38 |
zOnny | *once | 11:38 |
replaceafill | zOnny, don't | 11:38 |
replaceafill | zOnny, you're very far away | 11:38 |
replaceafill | zOnny, you'll need to port this to tendenci7 | 11:38 |
zOnny | replaceafill: ah | 11:38 |
zOnny | replaceafill: in the server ? | 11:38 |
replaceafill | zOnny, it should be just a few import changes | 11:39 |
replaceafill | zOnny, so the libreorganize_events repo should have master and tendenci7 branches | 11:39 |
replaceafill | zOnny, master will be for tendenci11 | 11:39 |
replaceafill | zOnny, and we'll install the tendenci7 branch in the existing servers | 11:39 |
replaceafill | zOnny, you'll need to adjust frank too | 11:40 |
replaceafill | zOnny, to use your new package | 11:40 |
zOnny | replaceafill: :O | 11:40 |
zOnny | replaceafill: -.- So one step at the time | 11:40 |
replaceafill | zOnny, you are the one wanting to merge in ora_dev... | 11:41 |
replaceafill | :P | 11:41 |
replaceafill | zOnny, ok, i need to go | 11:41 |
replaceafill | zOnny, let's touch base on sunday | 11:41 |
zOnny | replaceafill: why programming is too complicate :/ | 11:41 |
replaceafill | zOnny, send me an email if you have questions | 11:41 |
zOnny | replaceafill: ok | 11:42 |
replaceafill | zOnny, that's why we sometimes get paid... :( | 11:42 |
zOnny | replaceafill: I will explore | 11:42 |
replaceafill | zOnny, cool, good luck | 11:42 |
zOnny | replaceafill: thanks | 11:42 |
replaceafill | zOnny, later o/ | 11:42 |
zOnny | ttyl | 11:42 |
*** mjsir911 has joined #novawebdev | 19:27 | |
*** mjsir911 has joined #novawebdev | 22:57 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!