IRC log of #novawebdev for Friday, 2018-11-23

*** mjsir911 has joined #novawebdev09:02
*** replaceafill has joined #novawebdev09:18
*** zOnny has joined #novawebdev09:52
zOnnyhello replaceafill 09:53
replaceafillhello zOnny09:56
zOnnyreplaceafill: the views.py method works09:57
zOnnyreplaceafill: I just wonder about all these tons of imports 09:58
replaceafillzOnny, cool09:58
replaceafillzOnny, the function is very complex so those are needed09:58
zOnnyreplaceafill: ok09:59
replaceafillzOnny, your next task would be to simplify all those forms09:59
replaceafillzOnny, and replace them with your own09:59
replaceafillzOnny, yours should be simpler09:59
zOnnyreplaceafill: you mean using forms.py ?10:01
replaceafillzOnny, start with something simple10:06
replaceafillzOnny, so you get the idea10:06
replaceafillzOnny, can you hang out?10:06
zOnnyreplaceafill: sure10:06
*** mjsir911 has joined #novawebdev10:26
zOnnyreplaceafill: https://gitlab.com/edzon.quinteros/libreorganize_events10:49
replaceafillzOnny, thanks, cloning10:49
zOnnyreplaceafill: I didn't give you permission10:50
zOnnyreplaceafill: hold on10:50
replaceafillzOnny, it's publice10:51
replaceafillpublic*10:51
zOnnyreplaceafill: but you will not clone as ssh 10:51
replaceafillzOnny, i did10:51
zOnnyreplaceafill: -.-10:52
replaceafillzOnny, sorry, back11:18
replaceafillzOnny, starting to test11:18
zOnnyreplaceafill: cool11:18
replaceafillzOnny, got it11:21
replaceafillzOnny, uncomment speaker_form and form_attendees11:22
zOnnyreplaceafill: ok11:22
replaceafillzOnny, let me know if it works after that11:22
replaceafillzOnny, problem is that those forms are not added to the fields11:22
replaceafillzOnny, but on submission they're built back11:23
replaceafillzOnny, and django can't find the fields11:23
zOnnyreplaceafill: It works11:24
replaceafillzOnny, cool11:24
replaceafillzOnny, now11:24
replaceafillzOnny, try this diff in your forms.py11:24
replaceafill class MyOrganizerForm(OrganizerForm):11:25
replaceafill-    pass11: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
replaceafillzOnny, that is, remove the pass11:25
replaceafillzOnny, and add that __init__ definition11:25
zOnnyreplaceafill: ok11:25
replaceafillzOnny, that will get rid of the description field for the organizer11:25
replaceafillzOnny, the rest of the form should work11:25
zOnnyreplaceafill: cool!11:28
replaceafillzOnny, so now you'll need to do the same with the rest of the forms11:29
replaceafillzOnny, you can hide them entirely11:29
replaceafillzOnny, like you did with speaker_form11:29
zOnnyreplaceafill: in different classes, yes ?11:29
replaceafillzOnny, just make sure you remove them from both places11:29
replaceafillzOnny, yes11:30
zOnnyreplaceafill: both places ?11:30
replaceafillzOnny, hold on11:30
replaceafillzOnny, place 1, forms rendered on GET: https://github.com/tendenci/tendenci/blob/master/tendenci/apps/events/views.py#L1434-L144211:31
replaceafillzOnny, place 2, forms used for validation on POST: https://github.com/tendenci/tendenci/blob/master/tendenci/apps/events/views.py#L1215-L122311:31
replaceafillzOnny, the problem you had was the speaker_form was commented on place 1, but not on place 211:32
zOnnyreplaceafill: I see11:32
replaceafillzOnny, so django tried to validate speaker data11:32
replaceafillzOnny, and couldn't find any fields about it11:32
replaceafillzOnny, so if  try removing the "all day" checkbox11:33
replaceafillzOnny, from EventForm11:33
replaceafillzOnny, and so on11:33
zOnnyreplaceafill: in this case I should commented both11:33
replaceafillzOnny, yes11:33
zOnnyreplaceafill: but the fields like location description11:33
replaceafillzOnny, that's the PlaceForm11:34
zOnnyreplaceafill: should be done the same as the speaker, yes ?11:34
replaceafillzOnny, it depends if you want to get rid of the fields entirely11:34
replaceafillzOnny, since you're just testing, you can commented out11:34
replaceafillzOnny, for now11:34
replaceafillzOnny, leaving only form_event, form_regconf and form_regconfpricing11:35
zOnnyreplaceafill: but the are fields that need some labels only11:35
replaceafillzOnny, hm?11:35
replaceafillzOnny, don't understand that last sentence11:35
zOnnyreplaceafill: hold on11:35
zOnnyreplaceafill: I see11:37
replaceafillzOnny, ok, i need to step away for a bit11:37
zOnnyreplaceafill: it is done how I can merge it into ORA_dev ?11:38
zOnny*once11:38
replaceafillzOnny, don't11:38
replaceafillzOnny, you're very far away11:38
replaceafillzOnny, you'll need to port this to tendenci711:38
zOnnyreplaceafill: ah11:38
zOnnyreplaceafill: in the server ?11:38
replaceafillzOnny, it should be just a few import changes11:39
replaceafillzOnny, so the libreorganize_events repo should have master and tendenci7 branches11:39
replaceafillzOnny, master will be for tendenci1111:39
replaceafillzOnny, and we'll install the tendenci7 branch in the existing servers11:39
replaceafillzOnny, you'll need to adjust frank too11:40
replaceafillzOnny, to use your new package11:40
zOnnyreplaceafill: :O11:40
zOnnyreplaceafill: -.- So one step at the time 11:40
replaceafillzOnny, you are the one wanting to merge in ora_dev...11:41
replaceafill:P11:41
replaceafillzOnny, ok, i need to go11:41
replaceafillzOnny, let's touch base on sunday11:41
zOnnyreplaceafill: why programming is too complicate :/11:41
replaceafillzOnny, send me an email if you have questions11:41
zOnnyreplaceafill: ok11:42
replaceafillzOnny, that's why we sometimes get paid... :(11:42
zOnnyreplaceafill: I will explore 11:42
replaceafillzOnny, cool, good luck11:42
zOnnyreplaceafill: thanks11:42
replaceafillzOnny, later o/11:42
zOnnyttyl11:42
*** mjsir911 has joined #novawebdev19:27
*** mjsir911 has joined #novawebdev22:57

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!