*** mjsir911 has joined #novawebdev | 07:41 | |
*** mjsir911 has joined #novawebdev | 08:05 | |
*** mjsir911 has joined #novawebdev | 09:41 | |
*** dsmall has joined #novawebdev | 10:08 | |
dsmall | mjsir911, do you know where jelkner is? | 10:09 |
---|---|---|
*** replaceafill has joined #novawebdev | 11:00 | |
*** mjsir911 has joined #novawebdev | 11:02 | |
dsmall | replaceafill, good morning | 11:14 |
replaceafill | good morning dsmall | 11:14 |
dsmall | replaceafill, I got the dropdown menu working | 11:15 |
replaceafill | dsmall, ah cool | 11:16 |
dsmall | replaceafill, I think I am ready to start integrating, but I am not too sure on how I would go about doing that | 11:16 |
replaceafill | dsmall, i think you should get zOnny's help to do that | 11:16 |
replaceafill | dsmall, i mean, it's faster for him to explain you how theming works | 11:16 |
replaceafill | dsmall, hold on | 11:17 |
dsmall | replaceafill, ahh okay | 11:17 |
dsmall | replaceafill, he isn't in right now, but when he comes in I can ask him about that | 11:17 |
replaceafill | dsmall, https://github.com/tendenci/tendenci/blob/master/THEMING.md | 11:17 |
replaceafill | dsmall, i'm not sure how much sense that'll make | 11:18 |
replaceafill | dsmall, theming is about learning how to use template blocks mostly | 11:18 |
dsmall | replaceafill, okay, I'll take a look at it | 11:18 |
replaceafill | dsmall, i have a few comments on your code that you can address while you wait for zOnny | 11:18 |
replaceafill | - spaces not tabs, 4 for python code and css, 2 for html | 11:19 |
dsmall | replaceafill, okay | 11:19 |
replaceafill | dsmall, i'll just paste my notes here, let me know if you have questions | 11:19 |
dsmall | replaceafill, alright | 11:19 |
replaceafill | - is models.list_pages being used? if it is move to templatetags/blog_tags.py module | 11:20 |
replaceafill | (if not, remove code) | 11:20 |
replaceafill | - remove test code | 11:20 |
replaceafill | - if after an objects.order_by call you traverse the results looking for something like [... if ], use objects.filter(...) instead | 11:20 |
replaceafill | content = [p.content for p in pages_list if p.guid == post_guid] | 11:21 |
replaceafill | that could be written as filter(guid=post_guid) | 11:21 |
dsmall | replaceafill, oh okay | 11:22 |
replaceafill | - in templates href="/pages", use {% url %} instead | 11:22 |
replaceafill | dsmall, 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() instead | 11:23 |
replaceafill | - href="/blog/{{ month|date:'Y' }}/{{ month|date:'m' }}, use {% url 'blog.monthSort' year month %} | 11:23 |
dsmall | replaceafill, can you give me an example of how to use {% url %}? | 11:23 |
replaceafill | dsmall, https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#url | 11:24 |
replaceafill | dsmall, you don't build the url manually | 11:24 |
replaceafill | dsmall, you use the name of the view that you set in urls.py to refer to it | 11:25 |
dsmall | replaceafill, ohh okay cool | 11:25 |
replaceafill | dsmall, and you just pass the arguments space separated | 11:25 |
dsmall | replaceafill, ok | 11:26 |
replaceafill | dsmall, oh naming | 11:26 |
replaceafill | dsmall, i've seen a lot of temp's in your identifiers | 11:27 |
replaceafill | dsmall, try to make it easy on the person who will need to maintain your code | 11:27 |
replaceafill | dsmall, for example indv-page | 11:27 |
replaceafill | dsmall, does that mean indivisible-page? :) | 11:27 |
replaceafill | dsmall, individual-page is better | 11:28 |
dsmall | replaceafill, ya... thats a habit I have been trying to break, I have never really coded with other people before this | 11:28 |
replaceafill | dsmall, that's fine | 11:28 |
dsmall | replaceafill, I will try to make the names more straight forward | 11:28 |
replaceafill | dsmall, remember that if we're truly successful your code will be used in production | 11:29 |
replaceafill | dsmall, and someone will pick it up | 11:29 |
replaceafill | dsmall, assume it'll be your best friend :D | 11:29 |
dsmall | replaceafill, right :) | 11:29 |
replaceafill | dsmall, that's something i usually read in dev posts | 11:29 |
replaceafill | dsmall, the index.html template having several "subtemplates" will be fixed once you integrate with the theme | 11:30 |
dsmall | replaceafill, ya, that was the plan | 11:31 |
dsmall | replaceafill, I will also clean up my urls.py and views.py to only have the parts we need | 11:31 |
replaceafill | dsmall, +1 | 11:31 |
replaceafill | dsmall, test code is fine but once you understand how something works | 11:32 |
replaceafill | dsmall, the test is usually not needed anymore | 11:32 |
*** zOnny has joined #novawebdev | 11:32 | |
replaceafill | dsmall, so you can remove it | 11:32 |
*** jelkner has joined #novawebdev | 11:32 | |
dsmall | replaceafill, right | 11:32 |
replaceafill | dsmall, so improve the filtering first | 11:33 |
replaceafill | dsmall, move it out of templates | 11:33 |
replaceafill | dsmall, the less smart a template is the better | 11:33 |
dsmall | replaceafill, okay | 11:33 |
replaceafill | dsmall, most of the heavy lifting should be done in the python code | 11:33 |
replaceafill | dsmall, i think that's all i have for now | 11:34 |
replaceafill | hello zOnny | 11:34 |
replaceafill | zOnny, could you help dsmall to integrate his work with our ora_dev branch? | 11:34 |
dsmall | replaceafill, alright if I have any questions I will let you know | 11:34 |
replaceafill | dsmall, cool, good luck | 11:35 |
zOnny | Hello World! | 11:36 |
zOnny | hey dsmall are you back ? | 11:36 |
dsmall | replaceafill, Yes I am | 11:37 |
dsmall | oops | 11:37 |
dsmall | zOnny, Yes I am | 11:37 |
zOnny | replaceafill: sure | 11:37 |
replaceafill | zOnny, thanks! | 11:38 |
zOnny | dsmall: cool | 11:38 |
replaceafill | dsmall, https://gitlab.com/novawebdevelopment/tendenci_profile_picture/blob/master/profile_picture/templates/profile_picture/edit.html | 11:38 |
replaceafill | dsmall, that's an example of a template that integrates with our theme | 11:38 |
replaceafill | ok | 11:39 |
replaceafill | ACTION gets started with his backlog | 11:39 |
*** mjsir911 has joined #novawebdev | 11:44 | |
jelkner | replaceafill, i see you are going to work | 12:18 |
jelkner | do my issues look ok? | 12:18 |
replaceafill | jelkner, i'm working :D | 12:18 |
replaceafill | jelkner, about the website? | 12:19 |
replaceafill | jelkner, yes | 12:19 |
jelkner | sorry man, i'll leaver you be! | 12:19 |
jelkner | s/leaver/leave | 12:19 |
replaceafill | jelkner, i can pause, np | 12:19 |
replaceafill | jelkner, i'm working on mike's pending requests | 12:19 |
jelkner | +1 | 12:19 |
jelkner | that is most important | 12:19 |
jelkner | sorry to bother you | 12:19 |
jelkner | later | 12:19 |
replaceafill | jelkner, later o/ | 12:19 |
*** mjsir911 has joined #novawebdev | 13:10 | |
*** replaceafill has joined #novawebdev | 13:13 | |
dsmall | replaceafill, 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 |
dsmall | replaceafill, would I use a filter? | 13:34 |
replaceafill | dsmall, any code you can point me to? | 13:35 |
dsmall | replaceafill, sure I currently working in views.py in the index view | 13:36 |
replaceafill | dsmall, url? | 13:36 |
dsmall | replaceafill, https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/views.py | 13:36 |
dsmall | replaceafill, specifically either year_list or month_list | 13:37 |
dsmall | they are the same at the moment | 13:37 |
replaceafill | dsmall, what should month_list be? | 13:39 |
dsmall | replaceafill, ideally it would be a list of all of the months that pages were created in | 13:40 |
dsmall | replaceafill, without duplicates | 13:40 |
replaceafill | dsmall, but the months alone are not really useful, aren't they? | 13:40 |
replaceafill | dsmall, i mean, ah but you're using dates | 13:41 |
replaceafill | dsmall, hold on | 13:41 |
replaceafill | dsmall, i don't remember the second parameter | 13:41 |
replaceafill | dsmall, ok so you get datetimes | 13:42 |
replaceafill | dsmall, not just the month | 13:42 |
dsmall | replaceafill, right | 13:42 |
replaceafill | dsmall, why do you need to "change the elements to just the year or month from the datetime?" | 13:42 |
dsmall | replaceafill, I want to use month_list as a list of what months need to be shown in the archive | 13:43 |
replaceafill | dsmall, and can't be used as it is? | 13:43 |
*** lelkneralfaro has joined #novawebdev | 13:44 | |
dsmall | replaceafill, it can, but I have to change the elements in the template | 13:44 |
replaceafill | dsmall, let me look at the template | 13:44 |
dsmall | replaceafill, and I wanted to move that to the view instead of the template | 13:44 |
dsmall | replaceafill, here :https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/templates/blog/index.html | 13:44 |
replaceafill | dsmall, in gitlab/github you can copy the url to specific lines you want people to see: | 13:45 |
replaceafill | dsmall, https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/templates/blog/index.html#L107 | 13:45 |
dsmall | replaceafill, https://gitlab.com/duncan-small/Tendenci-Blog/blob/dev/templates/blog/index.html#L88 | 13:45 |
replaceafill | dsmall, thanks | 13:45 |
replaceafill | dsmall, ah got it | 13:46 |
replaceafill | dsmall, ok | 13:46 |
replaceafill | dsmall, i don't think you need the year_list | 13:46 |
replaceafill | dsmall, i mean, month_list is a list of all the unique datetimes | 13:46 |
replaceafill | dsmall, which include the year | 13:46 |
replaceafill | dsmall, but let's suppose using the two is fine for now | 13:46 |
replaceafill | dsmall, the "for month in month_list" is giving you a datetime object | 13:47 |
replaceafill | dsmall, and you don't need to "change" it | 13:47 |
replaceafill | dsmall, you just need to access its month or year attributes | 13:47 |
dsmall | replaceafill, 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 menu | 13:47 |
replaceafill | dsmall, to build the url call | 13:47 |
dsmall | replaceafill, right, I was just trying to do that in the view instead of inside the template | 13:48 |
replaceafill | dsmall, sure i understand | 13:48 |
replaceafill | dsmall, but you're not changing them in the template, right? | 13:48 |
dsmall | replaceafill, I guess im not changing it | 13:48 |
dsmall | replaceafill, I wasn't sure if that was the kind of stuff I was supposed to move to the view | 13:49 |
replaceafill | dsmall, "year|date:'Y" can just be month (which in reality is a datetime): month.year | 13:49 |
replaceafill | dsmall, ah | 13:49 |
replaceafill | dsmall, no, here you're traversing an iterable (list of datetimes) and just accessing its items | 13:49 |
replaceafill | dsmall, this is fine | 13:49 |
replaceafill | dsmall, it's ok to do "formatting" in the template | 13:50 |
dsmall | replaceafill, oh okay, I got it now | 13:50 |
replaceafill | dsmall, what i asked you to not do was too much filterting in the template | 13:50 |
dsmall | replaceafill, ahh | 13:50 |
replaceafill | dsmall, like checking if the create datetime was in a specific format and then reacting to that *in the template* | 13:51 |
dsmall | replaceafill, I guess I just lumped in formatting with filtering | 13:51 |
dsmall | replaceafill, rig | 13:51 |
dsmall | replaceafill, right* | 13:51 |
replaceafill | dsmall, templates have "filters" but they're just really formatters | 13:52 |
replaceafill | dsmall, like the "create_dt|date:..." | 13:52 |
replaceafill | dsmall, everything after the | is the filter | 13:52 |
dsmall | replaceafill, so line 99,107, and 115 should be changed? | 13:52 |
replaceafill | dsmall, correct | 13:53 |
replaceafill | dsmall, you could send just the pages you need to the template | 13:53 |
dsmall | replaceafill, alright, I'll do that now | 13:53 |
replaceafill | dsmall, the view function takes care of filtering out what is not needed | 13:53 |
dsmall | replaceafill, ok | 13:53 |
replaceafill | dsmall, how's the theming integration? do you have a plan when to do that? | 13:54 |
dsmall | replaceafill, I can talk to z0nny about that since just got in | 13:55 |
replaceafill | dsmall, cool | 13:55 |
replaceafill | dsmall, i'm insisting on that because you'll realize you'll need to break your code differently | 13:55 |
replaceafill | dsmall, in order to use the theme efficiently | 13:55 |
dsmall | replaceafill, ah, makes sense | 13:56 |
replaceafill | dsmall, so the sooner you get to it the less you'll need to adjust | 13:56 |
replaceafill | dsmall, this may be useful for that https://tutorial.djangogirls.org/en/template_extending/ | 13:57 |
replaceafill | dsmall, all the secret is just in: {% extends 'blog/base.html' %} | 13:57 |
replaceafill | dsmall, ok i'll let you go back to it | 13:57 |
dsmall | replaceafill, alright | 13:58 |
replaceafill | ACTION hates when he can't find something that should be obvious | 14:00 |
replaceafill | dsmall, try to read this before your theming session with zOnny: https://docs.djangoproject.com/en/1.8/ref/templates/language/#template-inheritance | 14:00 |
dsmall | replaceafill, okay, we are starting to integrate right now | 14:01 |
replaceafill | dsmall, cool | 14:01 |
*** zOnny has joined #novawebdev | 14:25 | |
*** Dany has joined #novawebdev | 14:31 | |
Dany | Hello | 14:31 |
*** mjsir911 has joined #novawebdev | 14:41 | |
replaceafill | Dany, estás? | 14:49 |
Dany | replaceafill, si aqui estoy | 14:59 |
replaceafill | hola Dany sólo te quería preguntar por una parte del issue que registraste hoy | 15:00 |
replaceafill | Dany, "no tengo forma de crearlos en ingles y espanol o de editarlo despues de postearlo" | 15:00 |
replaceafill | Dany, específicamente la parte "o de editarlo despues de postearlo" | 15:01 |
replaceafill | Dany, significa que no sabés como se modifica el evento? | 15:01 |
Dany | replaceafill, cuando creo la descripcion del evento y lo posteo, no veo la forma de editarlo si llega a estar mal | 15:01 |
replaceafill | Dany, ah ok | 15:02 |
replaceafill | Dany, vas al evento | 15:02 |
dsmall | replaceafill, I *kinda* integrated my code | 15:02 |
dsmall | replaceafill, http://i.imgur.com/gKCU1tE.png | 15:02 |
replaceafill | Dany, y en el megamenu tenés el dropdown Events -> This Event -> Edit Event | 15:03 |
replaceafill | Dany, o si lo estás viendo en español Events -> Este Evento -> Editar evento | 15:03 |
replaceafill | dsmall, ah cool | 15:03 |
replaceafill | dsmall, that's a start :) | 15:04 |
replaceafill | dsmall, my idea is that you modify the sidebar just for that page | 15:04 |
replaceafill | dsmall, and you use it for the categories and archive options | 15:04 |
replaceafill | dsmall, that's the "breaking code" that i was talking about | 15:05 |
dsmall | replaceafill, Okay I think I can do that | 15:05 |
replaceafill | dsmall, great | 15:06 |
Dany | replaceafill, ok | 15:11 |
Dany | replaceafill, 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 traducirlas | 15:13 |
replaceafill | Dany, sí entiendo | 15:13 |
replaceafill | Dany, aún no son traducibles | 15:13 |
replaceafill | Dany, el contenido traducible tiene campos en español e inglés para ciertas partes | 15:14 |
replaceafill | Dany, a los eventos no los hemos hecho | 15:14 |
replaceafill | Dany, aunque temo que no será tan straightforward | 15:14 |
replaceafill | Dany, los eventos tienen un montón de opciones | 15:14 |
replaceafill | Dany, location, speakers, etc | 15:15 |
Dany | replaceafill, entonces? | 15:17 |
replaceafill | Dany, creo que novalaciro necesita la mayor cantidad de componentes bilingues | 15:19 |
replaceafill | Dany, por mí +1 en traducirlos | 15:19 |
replaceafill | Dany, hopefully jelkner is on the same page :) | 15:19 |
Dany | replaceafill, si, esa seria una priodirad ya que nuestro publico es de ambos idiomas | 15:19 |
replaceafill | Dany, jelkner we could try this as an estimate first kind of task | 15:19 |
replaceafill | Dany, +1 | 15:20 |
jelkner | Dany is the boss | 15:21 |
jelkner | doesn't matter what i think | 15:21 |
replaceafill | jelkner, i thought you were part of the board, but sure | 15:21 |
jelkner | actually, we want the entire site bilingual | 15:21 |
jelkner | i am part of the board | 15:21 |
jelkner | and the 5 us together are Dany's "bosses" it is true | 15:22 |
jelkner | but she is the one in the trenches getting the job done ;-) | 15:22 |
replaceafill | jelkner, i understand | 15:22 |
replaceafill | jelkner, and i think this "aligns" with novalaciro's goals | 15:22 |
jelkner | +1 | 15:22 |
Dany | replaceafill, entonces cual seria el plan? | 15:24 |
replaceafill | Dany, creo que debemos priorizar | 15:25 |
replaceafill | Dany, ahorita tengo en mi "cola" de tareas las listas de distribución | 15:25 |
replaceafill | Dany, también pensaba extender esta página: https://novalaciro.org/admin/memberships/membershipdefault/ | 15:25 |
replaceafill | Dany, para incluir el telefono y la direccion | 15:26 |
replaceafill | Dany, esa seria la alternativa a la "agenda" de contactos que proponías | 15:26 |
Dany | replaceafill, oh genial, asi no tendria que entrar a uno por uno para conseguir la informacion | 15:27 |
replaceafill | Dany, +` | 15:27 |
replaceafill | +1 | 15:27 |
replaceafill | Dany, y esa página es muy "parametrizable" (flexible) | 15:27 |
Dany | replaceafill, genial | 15:28 |
replaceafill | Dany, cuando podás dale una revisión a esta página también: https://novalaciro.org/memberships/reports/ | 15:28 |
Dany | replaceafill, y esa pagina? | 15:31 |
replaceafill | Dany, son lso reportes de membresía que trae Tendenci | 15:31 |
replaceafill | Dany, alguno te podrá servir | 15:31 |
Dany | replaceafill, ohh que genial!!! | 15:31 |
Dany | replaceafill, no lo dudes, como puedo lelgar a ella desde la pagina principal | 15:31 |
replaceafill | Dany, por ejemplo si elegís Datos miembros -> 5. Membresías pendientes | 15:32 |
replaceafill | Dany, llegarás a la página que pienso extender | 15:32 |
replaceafill | Dany, ah para llegar allí | 15:32 |
replaceafill | Dany, desde el megamenu tenés un dropdown Reports/Informes | 15:33 |
replaceafill | Dany, luego 1. Membership Overview -> All Membership Reports | 15:33 |
replaceafill | Dany, este hasta con graficos: https://novalaciro.org/memberships/reports/overview/ | 15:34 |
Dany | replaceafill, ya lo vi | 15:34 |
jelkner | zOnny, replaceafill, i just told Dany we need to get a good quote from her and a picture for the website | 15:36 |
jelkner | she has a great quote in mind | 15:36 |
replaceafill | jelkner, ah, nice | 15:36 |
Dany | i'm going to leave for a moment | 15:39 |
replaceafill | ACTION goes to get lunch, bb in ~40 | 15:40 |
dsmall | zOnny, https://gitlab.com/duncan-small/Tendenci-Blog/tree/dev | 15:55 |
replaceafill | ACTION is back | 16:15 |
*** nrcerna_ has joined #novawebdev | 16:23 | |
jelkner | hello, nrcerna! | 17:21 |
jelkner | we just had an interesting conversation with zOnny | 17:22 |
jelkner | it appears that despite what i generally consider to be pretty artistic eye | 17:22 |
jelkner | recognizing distortion in images doesn't come naturally to him | 17:22 |
replaceafill | jelkner, could i get your opinion on something? | 17:23 |
jelkner | sure, replaceafill | 17:23 |
replaceafill | jelkner, email fwded | 17:24 |
jelkner | cool | 17:25 |
replaceafill | jelkner, do you think maybe Matt or Marco would be interested in doing the containerization? | 17:25 |
jelkner | i read it | 17:25 |
jelkner | mjsir911 is here right now | 17:25 |
jelkner | can we ask him? | 17:25 |
mjsir911 | yes | 17:25 |
mjsir911 | I would be interested in containerization | 17:26 |
jelkner | mjsir911 already has experience with this kind of thing | 17:26 |
*** hrodriguez has joined #novawebdev | 17:26 | |
jelkner | and he sees mattva01 every thursday | 17:26 |
replaceafill | jelkner, mjsir911 cool, i'll introduce him to Glenda | 17:26 |
jelkner | i say we write to glenda and say nova web development will do it for her | 17:26 |
replaceafill | jelkner, i don't want to be involved in it | 17:27 |
jelkner | we need to come up with an estimate | 17:27 |
jelkner | oh, that is a different story | 17:27 |
jelkner | really? | 17:27 |
replaceafill | jelkner, yep | 17:27 |
jelkner | may i ask why? | 17:27 |
jelkner | since you are the school tool developer | 17:27 |
jelkner | i would be more hesitant to take it on if you didn't have our back | 17:27 |
replaceafill | jelkner, i don't know i just don't have the energy i guess | 17:28 |
replaceafill | jelkner, or interest | 17:28 |
replaceafill | jelkner, i don't know | 17:28 |
replaceafill | jelkner, and i think anyone with docker ability could pick it up | 17:29 |
replaceafill | jelkner, hhmm... not sure about that to be honest | 17:29 |
mjsir911 | I think the biggest issue would be getting a working version *before* porting it to containers | 17:29 |
mjsir911 | for me anyways, not knowing anything about the codebase | 17:29 |
jelkner | mjsir911, we have a working version | 17:29 |
replaceafill | mjsir911, there are ppas for it | 17:29 |
jelkner | but you're point is well taken | 17:30 |
jelkner | replaceafill, my proposal would be this: | 17:30 |
jelkner | 1. mjsir911 be the main person to do the containerization | 17:30 |
mjsir911 | well in that case yea I agree with replaceafill, it really isnt a task that someone with knowledge of the codebase needs to do | 17:30 |
jelkner | 2. replaceafill agrees to help him with any specific schooltool issues that arise | 17:30 |
jelkner | without 2, i wouldn't want to do it | 17:30 |
jelkner | perhaps there will be no issues | 17:31 |
jelkner | and 2 will be nothing | 17:31 |
replaceafill | jelkner, i'd rather say glenda that i'm not interested but these people may help you with containers | 17:31 |
replaceafill | jelkner, and mjsir911 seems optimistic about not knowing the codebase :) | 17:32 |
replaceafill | jelkner, mjsir911 it's mostly about the services involved you need to take care of | 17:32 |
jelkner | ACTION signs off for the evening | 17:47 |
*** mjsir911 has joined #novawebdev | 19:54 | |
*** mjsir911 has joined #novawebdev | 21:08 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!