IRC log of #novawebdev for Wednesday, 2018-05-30

*** mjsir911 has joined #novawebdev07:41
*** mjsir911 has joined #novawebdev08:05
*** mjsir911 has joined #novawebdev09:41
*** dsmall has joined #novawebdev10:08
dsmallmjsir911, do you know where jelkner is?10:09
*** replaceafill has joined #novawebdev11:00
*** mjsir911 has joined #novawebdev11:02
dsmallreplaceafill, good morning11:14
replaceafillgood morning dsmall11:14
dsmallreplaceafill, I got the dropdown menu working11:15
replaceafilldsmall, ah cool11:16
dsmallreplaceafill, I think I am ready to start integrating, but I am not too sure on how I would go about doing that11:16
replaceafilldsmall, i think you should get zOnny's help to do that11:16
replaceafilldsmall, i mean, it's faster for him to explain you how theming works11:16
replaceafilldsmall, hold on11:17
dsmallreplaceafill, ahh okay11:17
dsmallreplaceafill, he isn't in right now, but when he comes in I can ask him about that11:17
replaceafilldsmall, https://github.com/tendenci/tendenci/blob/master/THEMING.md11:17
replaceafilldsmall, i'm not sure how much sense that'll make11:18
replaceafilldsmall, theming is about learning how to use template blocks mostly11:18
dsmallreplaceafill, okay, I'll take a look at it11:18
replaceafilldsmall, i have a few comments on your code that you can address while you wait for zOnny11:18
replaceafill- spaces not tabs, 4 for python code and css, 2 for html11:19
dsmallreplaceafill, okay11:19
replaceafilldsmall, i'll just paste my notes here, let me know if you have questions11:19
dsmallreplaceafill, alright11:19
replaceafill- is models.list_pages being used? if it is move to templatetags/blog_tags.py module11:20
replaceafill(if not, remove code)11:20
replaceafill- remove test code11:20
replaceafill- if after an objects.order_by call you traverse the results looking for something like  [... if ], use objects.filter(...) instead11:20
replaceafillcontent = [p.content for p in pages_list if p.guid == post_guid]11:21
replaceafillthat could be written as filter(guid=post_guid)11:21
dsmallreplaceafill, oh okay11:22
replaceafill- in templates href="/pages", use {% url %} instead11:22
replaceafilldsmall, any hardcoded url like href="/pages..." or src="/blog..." should use {% url %}11:23
replaceafill- """page.create_dt|date:'Y/m/d' == tempFormat""", this is filtering, use filter() instead11:23
replaceafill- href="/blog/{{ month|date:'Y' }}/{{ month|date:'m' }}, use {% url 'blog.monthSort' year month %}11:23
dsmallreplaceafill, can you give me an example of how to use {% url %}?11:23
replaceafilldsmall, https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#url11:24
replaceafilldsmall, you don't build the url manually11:24
replaceafilldsmall, you use the name of the view that you set in urls.py to refer to it11:25
dsmallreplaceafill, ohh okay cool11:25
replaceafilldsmall, and you just pass the arguments space separated11:25
dsmallreplaceafill, ok11:26
replaceafilldsmall, oh naming11:26
replaceafilldsmall, i've seen a lot of temp's in your identifiers11:27
replaceafilldsmall, try to make it easy on the person who will need to maintain your code11:27
replaceafilldsmall, for example indv-page11:27
replaceafilldsmall, does that mean indivisible-page? :)11:27
replaceafilldsmall, individual-page is better11:28
dsmallreplaceafill, ya... thats a habit I have been trying to break, I have never really coded with other people before this11:28
replaceafilldsmall, that's fine11:28
dsmallreplaceafill, I will try to make the names more straight forward11:28
replaceafilldsmall, remember that if we're truly successful your code will be used in production11:29
replaceafilldsmall, and someone will pick it up11:29
replaceafilldsmall, assume it'll be your best friend :D11:29
dsmallreplaceafill, right :)11:29
replaceafilldsmall, that's something i usually read in dev posts11:29
replaceafilldsmall, the index.html template having several "subtemplates" will be fixed once you integrate with the theme11:30
dsmallreplaceafill, ya, that was the plan11:31
dsmallreplaceafill, I will also clean up my urls.py and views.py to only have the parts we need11:31
replaceafilldsmall, +111:31
replaceafilldsmall, test code is fine but once you understand how something works11:32
replaceafilldsmall, the test is usually not needed anymore11:32
*** zOnny has joined #novawebdev11:32
replaceafilldsmall, so you can remove it11:32
*** jelkner has joined #novawebdev11:32
dsmallreplaceafill, right11:32
replaceafilldsmall, so improve the filtering first11:33
replaceafilldsmall, move it out of templates11:33
replaceafilldsmall, the less smart a template is the better11:33
dsmallreplaceafill, okay11:33
replaceafilldsmall, most of the heavy lifting should be done in the python code11:33
replaceafilldsmall, i think that's all i have for now11:34
replaceafillhello zOnny11:34
replaceafillzOnny, could you help dsmall to integrate his work with our ora_dev branch?11:34
dsmallreplaceafill, alright if I have any questions I will let you know11:34
replaceafilldsmall, cool, good luck11:35
zOnnyHello World!11:36
zOnnyhey dsmall are you back ?11:36
dsmallreplaceafill, Yes I am11:37
dsmalloops11:37
dsmallzOnny, Yes I am11:37
zOnnyreplaceafill: sure11:37
replaceafillzOnny, thanks!11:38
zOnnydsmall: cool11:38
replaceafilldsmall, https://gitlab.com/novawebdevelopment/tendenci_profile_picture/blob/master/profile_picture/templates/profile_picture/edit.html11:38
replaceafilldsmall, that's an example of a template that integrates with our theme11:38
replaceafillok11:39
replaceafillACTION gets started with his backlog11:39
*** mjsir911 has joined #novawebdev11:44
jelknerreplaceafill, i see you are going to work12:18
jelknerdo my issues look ok?12:18
replaceafilljelkner, i'm working :D12:18
replaceafilljelkner, about the website?12:19
replaceafilljelkner, yes12:19
jelknersorry man, i'll leaver you be!12:19
jelkners/leaver/leave12:19
replaceafilljelkner, i can pause, np12:19
replaceafilljelkner, i'm working on mike's pending requests12:19
jelkner+112:19
jelknerthat is most important12:19
jelknersorry to bother you12:19
jelknerlater12:19
replaceafilljelkner, later o/12:19
*** mjsir911 has joined #novawebdev13:10
*** replaceafill has joined #novawebdev13:13
dsmallreplaceafill, I have a quick question: if I have a ValuesListQuerySet and each element is a datetime value how should I iterate over it to change the elements to just the year or month from the datetime?13:34
dsmallreplaceafill, would I use a filter?13:34
replaceafilldsmall, any code you can point me to?13:35
dsmallreplaceafill, sure I currently working in views.py in the index view13:36
replaceafilldsmall, url?13:36
dsmallreplaceafill, https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/views.py13:36
dsmallreplaceafill, specifically either year_list or month_list13:37
dsmallthey are the same at the moment13:37
replaceafilldsmall, what should month_list be?13:39
dsmallreplaceafill, ideally it would be a list of all of the months that pages were created in13:40
dsmallreplaceafill, without duplicates13:40
replaceafilldsmall, but the months alone are not really useful, aren't they?13:40
replaceafilldsmall, i mean, ah but you're using dates13:41
replaceafilldsmall, hold on13:41
replaceafilldsmall, i don't remember the second parameter13:41
replaceafilldsmall, ok so you get datetimes13:42
replaceafilldsmall, not just the month13:42
dsmallreplaceafill, right13:42
replaceafilldsmall, why do you need to "change the elements to just the year or month from the datetime?"13:42
dsmallreplaceafill, I want to use month_list as a list of what months need to be shown in the archive13:43
replaceafilldsmall, and can't be used as it is?13:43
*** lelkneralfaro has joined #novawebdev13:44
dsmallreplaceafill, it can, but I have to change the elements in the template13:44
replaceafilldsmall, let me look at the template13:44
dsmallreplaceafill, and I wanted to move that to the view instead of the template13:44
dsmallreplaceafill, here :https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/templates/blog/index.html13:44
replaceafilldsmall, in gitlab/github you can copy the url to specific lines you want people to see:13:45
replaceafilldsmall, https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/templates/blog/index.html#L10713:45
dsmallreplaceafill, https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/templates/blog/index.html#L8813:45
replaceafilldsmall, thanks13:45
replaceafilldsmall, ah got it13:46
replaceafilldsmall, ok13:46
replaceafilldsmall, i don't think you need the year_list13:46
replaceafilldsmall, i mean, month_list is a list of all the unique datetimes13:46
replaceafilldsmall, which include the year13:46
replaceafilldsmall, but let's suppose using the two is fine for now13:46
replaceafilldsmall, the "for month in month_list" is giving you a datetime object13:47
replaceafilldsmall, and you don't need to "change" it13:47
replaceafilldsmall, you just need to access its month or year attributes13:47
dsmallreplaceafill, right, I just wanted a separate list for the year so that I could do a nested loop to get the month and the year to show up in the archive dropdown menu13:47
replaceafilldsmall, to build the url call13:47
dsmallreplaceafill, right, I was just trying to do that in the view instead of inside the template13:48
replaceafilldsmall, sure i understand13:48
replaceafilldsmall, but you're not changing them in the template, right?13:48
dsmallreplaceafill, I guess im not changing it13:48
dsmallreplaceafill, I wasn't sure if that was the kind of stuff I was supposed to move to the view13:49
replaceafilldsmall, "year|date:'Y" can just be month (which in reality is a datetime): month.year13:49
replaceafilldsmall, ah13:49
replaceafilldsmall, no, here you're traversing an iterable (list of datetimes) and just accessing its items13:49
replaceafilldsmall, this is fine13:49
replaceafilldsmall, it's ok to do "formatting" in the template13:50
dsmallreplaceafill, oh okay, I got it now13:50
replaceafilldsmall, what i asked you to not do was too much filterting in the template13:50
dsmallreplaceafill, ahh13:50
replaceafilldsmall, like checking if the create datetime was in a specific format and then reacting to that *in the template*13:51
dsmallreplaceafill, I guess I just lumped in formatting with filtering13:51
dsmallreplaceafill, rig13:51
dsmallreplaceafill, right*13:51
replaceafilldsmall, templates have "filters" but they're just really formatters13:52
replaceafilldsmall, like the "create_dt|date:..."13:52
replaceafilldsmall, everything after the | is the filter13:52
dsmallreplaceafill, so line 99,107, and 115 should be changed?13:52
replaceafilldsmall, correct13:53
replaceafilldsmall, you could send just the pages you need to the template13:53
dsmallreplaceafill, alright, I'll do that now13:53
replaceafilldsmall, the view function takes care of filtering out what is not needed13:53
dsmallreplaceafill, ok13:53
replaceafilldsmall, how's the theming integration? do you have a plan when to do that?13:54
dsmallreplaceafill, I can talk to z0nny about that since just got in13:55
replaceafilldsmall, cool13:55
replaceafilldsmall, i'm insisting on that because you'll realize you'll need to break your code differently13:55
replaceafilldsmall, in order to use the theme efficiently13:55
dsmallreplaceafill, ah, makes sense13:56
replaceafilldsmall, so the sooner you get to it the less you'll need to adjust13:56
replaceafilldsmall, this may be useful for that https://tutorial.djangogirls.org/en/template_extending/13:57
replaceafilldsmall, all the secret is just in: {% extends 'blog/base.html' %}13:57
replaceafilldsmall, ok i'll let you go back to it13:57
dsmallreplaceafill, alright13:58
replaceafillACTION hates when he can't find something that should be obvious14:00
replaceafilldsmall, try to read this before your theming session with zOnny: https://docs.djangoproject.com/en/1.8/ref/templates/language/#template-inheritance14:00
dsmallreplaceafill, okay, we are starting to integrate right now14:01
replaceafilldsmall, cool14:01
*** zOnny has joined #novawebdev14:25
*** Dany has joined #novawebdev14:31
DanyHello14:31
*** mjsir911 has joined #novawebdev14:41
replaceafillDany, estás?14:49
Danyreplaceafill, si aqui estoy14:59
replaceafillhola Dany sólo te quería preguntar por una parte del issue que registraste hoy15:00
replaceafillDany, "no tengo forma de crearlos en ingles y espanol o de editarlo despues de postearlo"15:00
replaceafillDany, específicamente la parte "o de editarlo despues de postearlo"15:01
replaceafillDany, significa que no sabés como se modifica el evento?15:01
Danyreplaceafill, cuando creo la descripcion del evento y lo posteo, no veo la forma de editarlo si llega a estar mal15:01
replaceafillDany, ah ok15:02
replaceafillDany, vas al evento15:02
dsmallreplaceafill, I *kinda* integrated my code15:02
dsmallreplaceafill, http://i.imgur.com/gKCU1tE.png15:02
replaceafillDany, y en el megamenu tenés el dropdown Events -> This Event -> Edit Event15:03
replaceafillDany, o si lo estás viendo en español Events -> Este Evento -> Editar evento15:03
replaceafilldsmall, ah cool15:03
replaceafilldsmall, that's a start :)15:04
replaceafilldsmall, my idea is that you modify the sidebar just for that page15:04
replaceafilldsmall, and you use it for the categories and archive options15:04
replaceafilldsmall, that's the "breaking code" that i was talking about15:05
dsmallreplaceafill, Okay I think I can do that15:05
replaceafilldsmall, great15:06
Danyreplaceafill, ok 15:11
Danyreplaceafill, sabes que acabo de notar, aunque edite el evento en la pagina de ingles, la pagina de espanol tambien se ve afectada, lo que necesito es tenerlas independientes para traducirlas15:13
replaceafillDany, sí entiendo15:13
replaceafillDany, aún no son traducibles15:13
replaceafillDany, el contenido traducible tiene campos en español e inglés para ciertas partes15:14
replaceafillDany, a los eventos no los hemos hecho15:14
replaceafillDany, aunque temo que no será tan straightforward15:14
replaceafillDany, los eventos tienen un montón de opciones15:14
replaceafillDany, location, speakers, etc15:15
Danyreplaceafill, entonces?15:17
replaceafillDany, creo que novalaciro necesita la mayor cantidad de componentes bilingues15:19
replaceafillDany, por mí +1 en traducirlos15:19
replaceafillDany, hopefully jelkner is on the same page :)15:19
Danyreplaceafill, si, esa seria una priodirad ya que nuestro publico es de ambos idiomas15:19
replaceafillDany, jelkner we could try this as an estimate first kind of task15:19
replaceafillDany, +115:20
jelknerDany is the boss15:21
jelknerdoesn't matter what i think15:21
replaceafilljelkner, i thought you were part of the board, but sure15:21
jelkneractually, we want the entire site bilingual15:21
jelkneri am part of the board15:21
jelknerand the 5 us together are Dany's "bosses" it is true15:22
jelknerbut she is the one in the trenches getting the job done ;-)15:22
replaceafilljelkner, i understand15:22
replaceafilljelkner, and i think this "aligns" with novalaciro's goals15:22
jelkner+115:22
Danyreplaceafill, entonces cual seria el plan?15:24
replaceafillDany, creo que debemos priorizar15:25
replaceafillDany, ahorita tengo en mi "cola" de tareas las listas de distribución15:25
replaceafillDany, también pensaba extender esta página: https://novalaciro.org/admin/memberships/membershipdefault/15:25
replaceafillDany, para incluir el telefono y la direccion15:26
replaceafillDany, esa seria la alternativa a la "agenda" de contactos que proponías15:26
Danyreplaceafill, oh genial, asi no tendria que entrar a uno por uno para conseguir la informacion15:27
replaceafillDany, +`15:27
replaceafill+115:27
replaceafillDany, y esa página es muy "parametrizable" (flexible)15:27
Danyreplaceafill, genial15:28
replaceafillDany, cuando podás dale una revisión a esta página también: https://novalaciro.org/memberships/reports/15:28
Danyreplaceafill, y esa pagina? 15:31
replaceafillDany, son lso reportes de membresía que trae Tendenci15:31
replaceafillDany, alguno te podrá servir15:31
Danyreplaceafill, ohh que genial!!!15:31
Danyreplaceafill, no lo dudes, como puedo lelgar a ella desde la pagina principal15:31
replaceafillDany, por ejemplo si elegís Datos miembros -> 5. Membresías pendientes15:32
replaceafillDany, llegarás a la página que pienso extender15:32
replaceafillDany, ah para llegar allí15:32
replaceafillDany, desde el megamenu tenés un dropdown Reports/Informes15:33
replaceafillDany, luego 1. Membership Overview -> All Membership Reports15:33
replaceafillDany, este hasta con graficos: https://novalaciro.org/memberships/reports/overview/15:34
Danyreplaceafill, ya lo vi15:34
jelknerzOnny, replaceafill, i just told Dany we need to get a good quote from her and a picture for the website15:36
jelknershe has a great quote in mind15:36
replaceafilljelkner, ah, nice15:36
Danyi'm going to leave for a moment 15:39
replaceafillACTION goes to get lunch, bb in ~4015:40
dsmallzOnny, https://gitlab.com/duncan-small/Tendenci-Blog/tree/dev15:55
replaceafillACTION is back16:15
*** nrcerna_ has joined #novawebdev16:23
jelknerhello, nrcerna!17:21
jelknerwe just had an interesting conversation with zOnny17:22
jelknerit appears that despite what i generally consider to be pretty artistic eye17:22
jelknerrecognizing distortion in images doesn't come naturally to him17:22
replaceafilljelkner, could i get your opinion on something?17:23
jelknersure, replaceafill 17:23
replaceafilljelkner, email fwded17:24
jelknercool17:25
replaceafilljelkner, do you think maybe Matt or Marco would be interested in doing the containerization?17:25
jelkneri read it17:25
jelknermjsir911 is here right now17:25
jelknercan we ask him?17:25
mjsir911yes17:25
mjsir911I would be interested in containerization17:26
jelknermjsir911 already has experience with this kind of thing17:26
*** hrodriguez has joined #novawebdev17:26
jelknerand he sees mattva01 every thursday17:26
replaceafilljelkner, mjsir911 cool, i'll introduce him to Glenda17:26
jelkneri say we write to glenda and say nova web development will do it for her17:26
replaceafilljelkner, i don't want to be involved in it17:27
jelknerwe need to come up with an estimate17:27
jelkneroh, that is a different story17:27
jelknerreally?17:27
replaceafilljelkner, yep17:27
jelknermay i ask why?17:27
jelknersince you are the school tool developer17:27
jelkneri would be more hesitant to take it on if you didn't have our back17:27
replaceafilljelkner, i don't know i just don't have the energy i guess17:28
replaceafilljelkner, or interest17:28
replaceafilljelkner, i don't know17:28
replaceafilljelkner, and i think anyone with docker ability could pick it up17:29
replaceafilljelkner, hhmm... not sure about that to be honest17:29
mjsir911I think the biggest issue would be getting a working version *before* porting it to containers17:29
mjsir911for me anyways, not knowing anything about the codebase17:29
jelknermjsir911, we have a working version17:29
replaceafillmjsir911, there are ppas for it17:29
jelknerbut you're point is well taken17:30
jelknerreplaceafill, my proposal would be this:17:30
jelkner1. mjsir911 be the main person to do the containerization17:30
mjsir911well in that case yea I agree with replaceafill, it really isnt a task that someone with knowledge of the codebase needs to do17:30
jelkner2. replaceafill agrees to help him with any specific schooltool issues that arise17:30
jelknerwithout 2, i wouldn't want to do it17:30
jelknerperhaps there will be no issues17:31
jelknerand 2 will be nothing17:31
replaceafilljelkner, i'd rather say glenda that i'm not interested but these people may help you with containers17:31
replaceafilljelkner, and mjsir911 seems optimistic about not knowing the codebase :)17:32
replaceafilljelkner, mjsir911 it's mostly about the services involved you need to take care of17:32
jelknerACTION signs off for the evening17:47
*** mjsir911 has joined #novawebdev19:54
*** mjsir911 has joined #novawebdev21:08

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