| *** povbot has joined #zope3-dev | 13:08 | |
| *** tarek has joined #zope3-dev | 13:10 | |
| *** BjornT has quit IRC | 13:24 | |
| *** BjornT has joined #zope3-dev | 13:29 | |
| *** dobee has quit IRC | 13:34 | |
| *** dobee has joined #zope3-dev | 13:39 | |
| *** rom|aw has quit IRC | 13:39 | |
| *** nathany has joined #zope3-dev | 13:48 | |
| *** rom|aw has joined #zope3-dev | 13:51 | |
| *** BjornT has quit IRC | 13:55 | |
| *** BjornT has joined #zope3-dev | 14:03 | |
| *** J1m has joined #zope3-dev | 14:11 | |
| *** oferw has joined #zope3-dev | 14:13 | |
| *** dobee has quit IRC | 14:13 | |
| *** BjornT has quit IRC | 14:18 | |
| *** dobee has joined #zope3-dev | 14:19 | |
| *** dunny has quit IRC | 14:20 | |
| *** BjornT has joined #zope3-dev | 14:24 | |
| *** ignas has joined #zope3-dev | 14:26 | |
| *** J1m has quit IRC | 14:39 | |
| *** mgedmin has quit IRC | 14:43 | |
| *** mgedmin has joined #zope3-dev | 14:45 | |
| *** volvox has quit IRC | 14:57 | |
| *** mgedmin has quit IRC | 15:06 | |
| *** rom|aw is now known as romanofski | 15:14 | |
| *** benji has quit IRC | 15:21 | |
| *** alga_ has joined #zope3-dev | 15:24 | |
| *** alga has quit IRC | 15:30 | |
| *** roym has joined #zope3-dev | 15:36 | |
| rocky | hm, what does the z3c.* toplevel namespace package stand for in svn.zope.org ? | 15:38 |
|---|---|---|
| *** Pupeno has quit IRC | 15:48 | |
| *** niemeyer has joined #zope3-dev | 15:54 | |
| *** benji has joined #zope3-dev | 16:00 | |
| rocky | hm, my post to z3-dev doesn't seem to be coming through on gmane | 16:06 |
| rocky | srichter: ping | 16:09 |
| philiKON | rocky, you most likely need to be subscribed to be allowed to post | 16:10 |
| rocky | philiKON: well, gmane allows posting via gmane once you've registered with gmane | 16:11 |
| philiKON | well, IF the mailinglist allows it | 16:11 |
| philiKON | it may still disallow it if the "From" addr isn't subscribed | 16:11 |
| rocky | philiKON: no, gmane itself is already registered with the mailing list i thought | 16:11 |
| philiKON | yes, it is | 16:11 |
| rocky | philiKON: so extra registration through gmane is all that was needed i thought | 16:11 |
| philiKON | with most lists, yes | 16:12 |
| rocky | i would expect gmane to at least email me back then and tell me my message can't go through if that were the case | 16:12 |
| philiKON | zop.org lists are pretty rigorous | 16:12 |
| philiKON | nope | 16:12 |
| philiKON | zope.org simply discards not-allowed stuff | 16:12 |
| rocky | philiKON: *all* of the other 7 or so zope mailing lists i use via gmane don't have this restriction | 16:12 |
| philiKON | hmm, weird | 16:13 |
| philiKON | rocky, better ask j1m :) | 16:13 |
| rocky | hehe | 16:13 |
| rocky | philiKON: basically what i asked on the list was if it was ok for me to add a Time schema field to zope.schema on the zope3.3 branch | 16:13 |
| rocky | and trunk | 16:13 |
| philiKON | trunk, probably | 16:13 |
| philiKON | 3.3 is in feature freeze | 16:13 |
| rocky | blech, such a small thing tho ;) | 16:13 |
| philiKON | we already had a beta | 16:13 |
| rocky | missing Time is a bug imho ;) | 16:13 |
| philiKON | riiiiiiiight | 16:14 |
| *** alga_ has quit IRC | 16:14 | |
| rocky | philiKON: i think the zope mail server needs to be kicked or something, i just sent a subscription request to zope3-checkins and its taking a long while to send me back the confirmation email | 16:18 |
| *** romanofski is now known as rom|zZZZ | 16:19 | |
| rom|zZZZ | nighty | 16:19 |
| rocky | g'night | 16:20 |
| philiKON | rom|zZZZ, in austrialia? | 16:22 |
| *** alga has joined #zope3-dev | 16:24 | |
| *** j1m has joined #zope3-dev | 16:25 | |
| *** eins has quit IRC | 16:28 | |
| *** gintas has joined #zope3-dev | 16:29 | |
| *** tanghus has joined #zope3-dev | 16:38 | |
| *** mgedmin has joined #zope3-dev | 16:40 | |
| *** BjornT has quit IRC | 16:40 | |
| *** BjornT has joined #zope3-dev | 16:41 | |
| *** gumpa has joined #zope3-dev | 16:47 | |
| *** niemeyer_ has joined #zope3-dev | 16:49 | |
| *** sashav has quit IRC | 16:54 | |
| *** GaryPoster has joined #zope3-dev | 16:57 | |
| *** fcorrea has joined #zope3-dev | 16:57 | |
| *** niemeyer has quit IRC | 16:58 | |
| *** niemeyer_ is now known as niemeyer | 17:00 | |
| *** oferw has quit IRC | 17:19 | |
| *** philiKON has quit IRC | 17:21 | |
| *** philiKON has joined #zope3-dev | 17:22 | |
| *** hdima has quit IRC | 17:30 | |
| *** BjornT___ has joined #zope3-dev | 17:32 | |
| *** rocky is now known as rocky|away | 17:41 | |
| *** zopePloneConsult has left #zope3-dev | 17:43 | |
| *** stub has quit IRC | 17:48 | |
| *** BjornT has quit IRC | 17:48 | |
| *** vlado has joined #zope3-dev | 17:48 | |
| *** alga has quit IRC | 17:49 | |
| *** BjornT has joined #zope3-dev | 17:53 | |
| *** dlk has quit IRC | 17:56 | |
| *** rocky|away is now known as rocky | 17:58 | |
| *** oferw has joined #zope3-dev | 18:03 | |
| rocky | philiKON: when we commit a fix on zope3.3 branch, is up to ourselves to commit the same fix to trunk or does some zope3 maintainer do this later on? | 18:06 |
| philiKON | you commit yourself | 18:06 |
| philiKON | you'd also have to commit to z3.2 really | 18:07 |
| philiKON | 3.2 is still in maintenance mode | 18:07 |
| rocky | oh? | 18:07 |
| rocky | blech =P | 18:07 |
| philiKON | after all, 3.3 isn't even final yet | 18:07 |
| rocky | right... i understand | 18:07 |
| *** BjornT___ has quit IRC | 18:07 | |
| philiKON | not sure how you guys do it in plone, but this is how we do it in zope 2, zope 3, five, etc. | 18:07 |
| philiKON | you're responsible for applying fixes on all active branches | 18:08 |
| rocky | philiKON: for plone we have hannosch, he prefers we do our fix on the maintenance version of plone and he migrates all fixes upwards in batches | 18:08 |
| philiKON | wow | 18:08 |
| philiKON | you're lucky to have hannosch :) | 18:08 |
| rocky | indeed :) | 18:08 |
| philiKON | man, merging like this is hard with svn | 18:08 |
| rocky | he scolded me once for applying my fix to both maintenance version and plone 2.5 ;) | 18:08 |
| philiKON | svn is conflict-prone | 18:09 |
| philiKON | yeah, he scolded you because of potential conflicts | 18:09 |
| rocky | right | 18:09 |
| philiKON | svn doesn't "see" when a fix has been appleid or not | 18:09 |
| philiKON | other systems are better | 18:09 |
| rocky | indeed | 18:09 |
| philiKON | svk :) | 18:09 |
| rocky | :) | 18:09 |
| rocky | my big beef with svk atm is its lack of support for svn:externals | 18:09 |
| philiKON | yeh, sucks | 18:10 |
| * philiKON back to physical spreadsheet processing | 18:10 | |
| philiKON | err, s/physical/physics/ | 18:10 |
| philiKON | it's not like i'm eating them or something ;) | 18:10 |
| rocky | lol | 18:11 |
| * rocky back to eating his bbq grilled burger he just made for himself | 18:11 | |
| philiKON | man, why did you have to mention your burger... | 18:12 |
| rocky | because it was so yummy :) | 18:12 |
| *** dobee has quit IRC | 18:12 | |
| tarek | hello, anyone is working on zope3org in here ? | 18:16 |
| srichter | no, Uwe is | 18:18 |
| srichter | I sitll have to send out some info | 18:18 |
| tarek | hello srichter, do you now his nick on irc ? | 18:19 |
| *** retsu_ has joined #zope3-dev | 18:19 | |
| srichter | tarek: no | 18:19 |
| srichter | I think he is not online usually | 18:20 |
| tarek | ok. | 18:20 |
| rocky | srichter: see my post on zope3-dev regarding adding zope.schema.Time to zope3.3 branch? is it too late? | 18:20 |
| tarek | i am looking for simple publication wf, simple versionning and things linke that. to reuse in a simple webste | 18:20 |
| srichter | rocky: yeah, too late for Zope 3.3; no more features | 18:25 |
| rocky | *sniff* | 18:25 |
| * rocky uses some radical rationale to exclaim that this is indeed a bug fix since Time should have been there all along ;) | 18:26 | |
| srichter | nope, argument does not fly ;-) | 18:26 |
| rocky | oh well ... i'll apply it against trunk at least | 18:27 |
| rocky | and i'll implement it inside my project for current use | 18:27 |
| srichter | yep | 18:30 |
| rocky | its quite odd that it doesn't exist already | 18:31 |
| rocky | man it hurts me everytime i hear someone in #zope mention that using dtml is a good idea :( | 18:32 |
| *** retsu__ has joined #zope3-dev | 18:33 | |
| * rocky cheers for Tres supporting his "missing Time is a bug" argument :) | 18:36 | |
| *** oferw has quit IRC | 18:38 | |
| *** retsu_ has quit IRC | 18:40 | |
| tarek | I have added a tag on delicious to try to list zope 3-powered sites, if some of you know any of these site out there, | 18:41 |
| tarek | the tag is "zope3-site" | 18:41 |
| tarek | http://del.icio.us/tag/zope3-site | 18:41 |
| *** whit has quit IRC | 18:43 | |
| *** MJ has quit IRC | 18:48 | |
| *** vlado has quit IRC | 18:50 | |
| *** whit has joined #zope3-dev | 18:52 | |
| *** mgedmin has quit IRC | 18:59 | |
| *** rocky has quit IRC | 19:00 | |
| *** rocky has joined #zope3-dev | 19:01 | |
| *** gump1 has joined #zope3-dev | 19:02 | |
| *** gumpa has quit IRC | 19:02 | |
| *** rocky has quit IRC | 19:04 | |
| *** gump1 is now known as gumpa | 19:04 | |
| *** roym` has joined #zope3-dev | 19:08 | |
| *** rocky has joined #zope3-dev | 19:08 | |
| *** mgedmin has joined #zope3-dev | 19:09 | |
| *** alecm has joined #zope3-dev | 19:09 | |
| *** dobee has joined #zope3-dev | 19:11 | |
| roym` | To use a vocabulary ('all names'), | 19:11 |
| roym` | names = List(value_type=Choice(vocabulary="all names")) | 19:11 |
| roym` | I would register it as: | 19:11 |
| roym` | <utility | 19:11 |
| roym` | provides="zope.schema.interfaces.IVocabularyFactory" | 19:11 |
| roym` | component="my.package.NamesVocab" | 19:11 |
| roym` | name="all names" | 19:11 |
| roym` | /> | 19:11 |
| roym` | How do I do the registration if "all names" is to refer to a Source | 19:11 |
| roym` | instead of a vocabulary? | 19:11 |
| rocky | roym`: i suggest you use pastebin.com or some other pasting server for such large pastes | 19:12 |
| *** retsu__ has quit IRC | 19:21 | |
| *** tarek has quit IRC | 19:26 | |
| *** mgedmin has quit IRC | 19:33 | |
| *** nathany has quit IRC | 19:33 | |
| *** faassen has quit IRC | 19:35 | |
| *** natea has quit IRC | 19:38 | |
| *** Theuni has quit IRC | 19:43 | |
| *** philiKON has quit IRC | 19:49 | |
| *** philiKON has joined #zope3-dev | 19:50 | |
| rocky | srichter: any chance you have a few minutes to explain formlib subpages to me? | 19:50 |
| srichter | rocky: actually, I do :-) | 19:51 |
| rocky | whoot! | 19:51 |
| srichter | first of all it is much less magic than you think :-) | 19:51 |
| rocky | thats comforting :) | 19:51 |
| srichter | so here is the basic layout: | 19:51 |
| srichter | class SubPageOrForm(FormBase): | 19:51 |
| srichter | def update(self): | 19:52 |
| srichter | # update stuff here; usually implemented for forms | 19:52 |
| srichter | def render(self): | 19:52 |
| srichter | # rendering the template here; done for forms, for browser pages: | 19:52 |
| srichter | return self.template() | 19:52 |
| srichter | template = ViewFilePageTemplate(...) | 19:53 |
| srichter | 19:53 | |
| srichter | 19:53 | |
| srichter | class PageOrForm(BrowserPage): | 19:53 |
| srichter | template = ViewFilePageTemplate('main.pt') | 19:53 |
| srichter | def update(self): | 19:54 |
| srichter | self.subForm = SubPageOrForm(self.context, self.request) | 19:54 |
| srichter | self.subForm.update() | 19:54 |
| srichter | # Next comes the main page stuff; for forms just use: | 19:55 |
| srichter | super(PageOrForm, self).update() | 19:55 |
| srichter | def render(self): | 19:55 |
| srichter | # forms do already the right thing, for browser page do: | 19:55 |
| srichter | return self.template() | 19:56 |
| srichter | 19:56 | |
| srichter | 19:56 | |
| srichter | in main.pt | 19:56 |
| srichter | ... | 19:56 |
| srichter | <div tal:replace="structure view/subForm/render" /> | 19:56 |
| srichter | ... | 19:56 |
| srichter | 19:56 | |
| srichter | 19:56 | |
| srichter | <over> | 19:56 |
| srichter | clearly this is the simplest way of doing this sort of thing | 19:57 |
| srichter | there are complex cases where the order and separation is not as clean, but you will know when you have a situation of that kind | 19:58 |
| rocky | interesting | 19:58 |
| rocky | couple questions, shouldn't your first class subclass SubPageForm instead of FormBase ? and update() seems to be only required by ISubPage (and not IForm so in your second class how is it known that there is an update method to call?) | 19:58 |
| srichter | no, you do not need SubPageForm necessarily | 19:59 |
| srichter | if you have a update/render method pair you are all set | 19:59 |
| rocky | render() makes sense to me, but update() does not | 19:59 |
| srichter | it is part of your interface (formally defined or not) to always have an update() and a render() method | 20:00 |
| srichter | it will; I'll explain | 20:00 |
| srichter | this is a solution for the infamous "render" bug | 20:00 |
| srichter | let's say my main page displays a list of objects | 20:00 |
| srichter | in my subform, which appears *below*/*after* the list, I allow to add objects of this type | 20:01 |
| srichter | now, if I only had a render method, then the object would be added after the list has been rendered | 20:02 |
| srichter | thus, the new object will not show in the list | 20:02 |
| rocky | oh ic | 20:02 |
| srichter | but, if I call update() before I even start rendering, then we have a chance to do our data manipulation beforehand | 20:03 |
| srichter | so basically, the task is to call update() on all view elements before a single line is rendered and then render them | 20:04 |
| rocky | hm, i guess i don't need to map my subform as a view component in zcml then? | 20:04 |
| srichter | this is a bit of a problem for content providers right now, since we do not know which ones we use till we started rendering | 20:04 |
| srichter | no, not at all! :-) | 20:04 |
| srichter | only if you want to replace the subform | 20:05 |
| srichter | sometimes I have menu items that control the sub-form/page to use | 20:05 |
| *** jinty has quit IRC | 20:05 | |
| rocky | content providers and viewlets will be the next UI piece for me to tackle after i'm satisfied with understanding formlib ;) | 20:05 |
| srichter | ok :-) | 20:05 |
| rocky | i'm going to try and apply my new understanding to my current problem... stay tuned :) | 20:06 |
| srichter | in the next weeks I am going to write a case study of an app I developed with Roger that realy features the power of all that | 20:06 |
| *** mgedmin has joined #zope3-dev | 20:07 | |
| srichter | rocky: I only have about 4-5 mins, before I have to leave | 20:08 |
| *** RaFromBRC has joined #zope3-dev | 20:09 | |
| rocky | srichter: k, in case i don't finish before you leave, thanks for the info! :) | 20:09 |
| srichter | I hope it helps, and write up a little how-to; people ask that question daily :-) | 20:10 |
| rocky | lol | 20:10 |
| rocky | i'm hoping to blog on the subject | 20:10 |
| rocky | srichter: do you always use schema interfaces when defining form_fields btw? | 20:11 |
| rocky | or do you sometimes construct form_fields based on manual field definitions? | 20:11 |
| srichter | most of the time I do | 20:11 |
| srichter | there are some very interesting cases when I dynamically generate fields | 20:12 |
| *** BjornT__ has joined #zope3-dev | 20:12 | |
| srichter | but that's pretty special | 20:12 |
| rocky | last night i was running into the situation where i defined a schema to respresent these subform fields but then when i tried rendering the view it blew up because the current context didn't implement that interface | 20:12 |
| srichter | ah, in that case, just initiate the form with a context that does | 20:13 |
| srichter | there is nothing special about: | 20:13 |
| *** RaFromBRC has quit IRC | 20:13 | |
| *** philiKON has quit IRC | 20:13 | |
| *** whit has quit IRC | 20:13 | |
| *** gintas has quit IRC | 20:13 | |
| *** benji has quit IRC | 20:13 | |
| *** yota has quit IRC | 20:13 | |
| *** zagy has quit IRC | 20:13 | |
| *** mp has quit IRC | 20:13 | |
| *** SteveA has quit IRC | 20:13 | |
| *** clasux_ has quit IRC | 20:13 | |
| srichter | self.subForm = SubPageOrForm(self.context, self.request) | 20:13 |
| srichter | I often do something more like: | 20:13 |
| *** RaFromBRC has joined #zope3-dev | 20:13 | |
| *** philiKON has joined #zope3-dev | 20:13 | |
| *** whit has joined #zope3-dev | 20:13 | |
| *** gintas has joined #zope3-dev | 20:13 | |
| *** benji has joined #zope3-dev | 20:13 | |
| *** yota has joined #zope3-dev | 20:13 | |
| *** zagy has joined #zope3-dev | 20:13 | |
| *** mp has joined #zope3-dev | 20:13 | |
| *** SteveA has joined #zope3-dev | 20:13 | |
| *** clasux_ has joined #zope3-dev | 20:13 | |
| srichter | self.subForm = SubPageOrForm(self.context.someAttr, self.request) | 20:13 |
| srichter | or | 20:13 |
| srichter | self.subForm = SubPageOrForm(self.context['item'], self.request) | 20:13 |
| srichter | ok, I gotta run now | 20:14 |
| srichter | I'll be back tonight | 20:14 |
| rocky | k, take care | 20:14 |
| rocky | thanks alot | 20:14 |
| *** ignas has quit IRC | 20:18 | |
| rocky | srichter: i just applied the subpage technique you just described to my problem and now everything is working like a charm! :) | 20:30 |
| rocky | mucho gracias | 20:30 |
| *** BjornT has quit IRC | 20:31 | |
| philiKON | rocky, ts ts... much*as* gracias... | 20:31 |
| rocky | d'oh | 20:32 |
| philiKON | you clearly didn't live in the U.S. long enough :) | 20:32 |
| rocky | haha | 20:32 |
| roym` | rocky: from my end, I pasted 12 or so lines... why would I have to use pastebin for that? | 20:33 |
| rocky | roym`: you can easily flood dial-up users off with that much content ;) | 20:34 |
| rocky | roym`: its no big deal to me, i was merely offering a suggestion ;) | 20:34 |
| rocky | philiKON: did you see the patch i attached to my most recent time schema field response? i'm just curious if i modified the correct changelog and in the right place | 20:34 |
| *** gintas has quit IRC | 20:34 | |
| *** Aiste has quit IRC | 20:34 | |
| roym` | hmmm - I just noticed a rather long session w/you and srichter... hence I am confused.. am I missing something here? | 20:35 |
| rocky | roym`: i would have suggested that srichter use a pastebin as well, but he's the op on this channel so i have no place to comment ;) | 20:35 |
| roym` | :) | 20:36 |
| philiKON | rocky, not yet. will take a look | 20:37 |
| philiKON | rocky, looks good. | 20:38 |
| rocky | philiKON: great, i'll give it another couple hours and then commit to svn | 20:39 |
| * philiKON dives into zpt land again | 20:42 | |
| *** gumpa is now known as gumpa-gone | 21:02 | |
| *** mkerrin has quit IRC | 21:03 | |
| *** BjornT__ has quit IRC | 21:16 | |
| *** BjornT has joined #zope3-dev | 21:23 | |
| *** gumpa-gone has quit IRC | 21:44 | |
| *** gumpa has joined #zope3-dev | 21:47 | |
| *** rocky has quit IRC | 21:48 | |
| *** rocky has joined #zope3-dev | 21:49 | |
| rocky | strange, if i have an IContainer implemented class (extends btree) shouldn't i be able to map contents.Contents directly against it as a view component? | 21:52 |
| rocky | nm, i had a mishap in my zcml | 21:56 |
| *** gintas has joined #zope3-dev | 22:01 | |
| *** tarek has joined #zope3-dev | 22:06 | |
| *** Theuni has joined #zope3-dev | 22:14 | |
| *** gintas has quit IRC | 22:48 | |
| *** natea has joined #zope3-dev | 22:53 | |
| *** dunny has joined #zope3-dev | 22:57 | |
| *** sashav has joined #zope3-dev | 23:09 | |
| *** MJ has joined #zope3-dev | 23:10 | |
| *** mgedmin has quit IRC | 23:19 | |
| *** natea has quit IRC | 23:21 | |
| *** Aiste has joined #zope3-dev | 23:44 | |
| *** projekt01 has joined #zope3-dev | 23:58 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!