| *** sidnei has joined #zope | 00:01 | |
| *** sidnei has quit IRC | 00:05 | |
| *** jham has quit IRC | 00:07 | |
| *** jham has joined #zope | 00:07 | |
| *** redir has quit IRC | 00:13 | |
| *** nilo_ has quit IRC | 00:13 | |
| *** Kabz|4D has joined #zope | 00:14 | |
| *** zodiac has quit IRC | 00:15 | |
| *** srichter has quit IRC | 00:16 | |
| *** zodiac has joined #zope | 00:18 | |
| *** Kabz|4D has quit IRC | 00:19 | |
| *** mcdonc has quit IRC | 00:23 | |
| *** lurkymclurkleton has joined #zope | 00:23 | |
| *** lurkymclurkleton has quit IRC | 00:24 | |
| *** lurkymclurkleton has joined #zope | 00:24 | |
| *** mcdonc has joined #zope | 00:25 | |
| *** webmaven has joined #zope | 00:31 | |
| *** Mardenkein has joined #zope | 00:31 | |
| *** sashav has quit IRC | 00:32 | |
| *** Mardenkein has quit IRC | 00:33 | |
| *** Mardenkein has joined #zope | 00:33 | |
| *** drudi has joined #zope | 00:33 | |
| *** mr_jolly has quit IRC | 00:36 | |
| *** drudi has quit IRC | 00:37 | |
| *** Kabz|4D has joined #zope | 00:37 | |
| *** jbglenn has quit IRC | 00:42 | |
| *** zodiac has quit IRC | 00:42 | |
| *** mr_jolly has joined #zope | 00:43 | |
| *** zodiac has joined #zope | 00:46 | |
| *** dbfrombrc has left #zope | 00:46 | |
| *** Kabz|4D has quit IRC | 00:47 | |
| *** sidnei has joined #zope | 00:56 | |
| *** benji has quit IRC | 00:56 | |
| *** spamsch has quit IRC | 01:00 | |
| *** Mardenkein has quit IRC | 01:00 | |
| *** zodiac has quit IRC | 01:11 | |
| *** lurkymclurklet-1 has joined #zope | 01:13 | |
| *** lurkymclurklet-1 has quit IRC | 01:13 | |
| *** zodiac has joined #zope | 01:14 | |
| *** lurkymclurkleton has quit IRC | 01:17 | |
| *** redir has joined #zope | 01:19 | |
| *** Hypergraphe has quit IRC | 01:30 | |
| *** ignas has quit IRC | 01:35 | |
| *** Kabz|4D has joined #zope | 01:39 | |
| *** zodiac has quit IRC | 01:41 | |
| *** zodiac has joined #zope | 01:44 | |
| *** Kabz|4D has quit IRC | 01:47 | |
| *** MrWu has joined #zope | 01:50 | |
| *** MrWu has quit IRC | 01:52 | |
| *** daMaestro has quit IRC | 01:54 | |
| *** zodiac has quit IRC | 02:08 | |
| *** tarek has quit IRC | 02:09 | |
| *** webmaven has quit IRC | 02:09 | |
| *** dbfrombrc has joined #zope | 02:10 | |
| *** zodiac has joined #zope | 02:11 | |
| *** sp0cksbeard has quit IRC | 02:17 | |
| *** tarek has joined #zope | 02:17 | |
| *** digilord has quit IRC | 02:17 | |
| *** tarek has quit IRC | 02:20 | |
| *** dbfrombrc has left #zope | 02:21 | |
| *** MatthewWilkes has left #zope | 02:21 | |
| *** alvaro_ has quit IRC | 02:26 | |
| *** alga has quit IRC | 02:26 | |
| *** runyaga has quit IRC | 02:34 | |
| *** KageSenshi has quit IRC | 02:35 | |
| *** mr_jolly has quit IRC | 02:35 | |
| *** zodiac has quit IRC | 02:38 | |
| *** zodiac has joined #zope | 02:41 | |
| *** jbglenn has joined #zope | 02:48 | |
| *** mr_jolly has joined #zope | 02:48 | |
| *** MrTango has quit IRC | 02:55 | |
| *** zodiac has quit IRC | 03:05 | |
| *** zodiac has joined #zope | 03:08 | |
| *** zodiac has joined #zope | 03:08 | |
| *** ders has joined #zope | 03:24 | |
| *** baijum has joined #zope | 03:30 | |
| *** zodiac has quit IRC | 03:30 | |
| *** ders has quit IRC | 03:31 | |
| *** ders has joined #zope | 03:32 | |
| *** mr_jolly has quit IRC | 03:34 | |
| *** mr_jolly has joined #zope | 03:35 | |
| *** zodiac has joined #zope | 03:35 | |
| *** mr_jolly has quit IRC | 03:39 | |
| *** tiwula has quit IRC | 03:49 | |
| *** ders has quit IRC | 03:51 | |
| *** kaeru has quit IRC | 03:54 | |
| *** kaeru has joined #zope | 03:57 | |
| *** zodiac has quit IRC | 03:59 | |
| *** zodiac has joined #zope | 04:02 | |
| *** srichter has joined #zope | 04:07 | |
| *** tiwula has joined #zope | 04:21 | |
| *** zodiac has quit IRC | 04:26 | |
| *** davisagli has left #zope | 04:30 | |
| *** aqquoz has joined #zope | 05:02 | |
| *** ders has joined #zope | 05:03 | |
| aqquoz | hello all, is zope 2.11.4 support python 2.5? thx | 05:03 |
|---|---|---|
| kosh | no | 05:10 |
| kosh | 2.11 is python 2.4 | 05:10 |
| kosh | 2.12 is python 2.6 | 05:10 |
| kosh | you can use python 2.5 maybe with 2.12 but it is not recommended | 05:10 |
| *** fsufitch has quit IRC | 05:17 | |
| *** ders has quit IRC | 05:17 | |
| *** ders has joined #zope | 05:19 | |
| *** povbot has joined #zope | 05:22 | |
| *** Vejeta` has joined #zope | 05:23 | |
| *** Vejeta has quit IRC | 05:23 | |
| *** Vejeta` has quit IRC | 05:24 | |
| *** Vejeta` has joined #zope | 05:24 | |
| *** Vejeta` is now known as Vejeta | 05:24 | |
| *** shinygiftson has joined #zope | 05:32 | |
| *** ders has quit IRC | 05:34 | |
| *** aaronv has joined #zope | 05:36 | |
| *** strichter has joined #zope | 05:39 | |
| *** davisagli has joined #zope | 05:39 | |
| *** srichter has quit IRC | 05:39 | |
| *** aaronv has quit IRC | 05:42 | |
| *** strichter has quit IRC | 05:46 | |
| *** strichter has joined #zope | 05:46 | |
| *** baijum has quit IRC | 05:47 | |
| *** _srichter has joined #zope | 05:50 | |
| *** strichter has quit IRC | 05:50 | |
| *** RaFromBRC has quit IRC | 05:52 | |
| *** binbrain has quit IRC | 05:58 | |
| *** KageSenshi has joined #zope | 06:02 | |
| *** jan_s has joined #zope | 06:15 | |
| *** KageSenshi has quit IRC | 06:25 | |
| *** Vejeta` has joined #zope | 06:36 | |
| *** allisterb has joined #zope | 06:37 | |
| *** Vejeta has quit IRC | 06:38 | |
| *** allisterb_ has quit IRC | 06:39 | |
| *** jbglenn has quit IRC | 06:44 | |
| *** Vejeta` has quit IRC | 06:44 | |
| *** Vejeta` has joined #zope | 06:44 | |
| *** Vejeta` is now known as Vejeta | 06:47 | |
| *** bhagat has joined #zope | 06:50 | |
| *** aqquoz has quit IRC | 06:53 | |
| *** baijum has joined #zope | 07:00 | |
| *** KageSenshi has joined #zope | 07:02 | |
| *** milele has joined #zope | 07:11 | |
| *** avn has quit IRC | 07:28 | |
| *** avn has joined #zope | 07:30 | |
| *** KageSenshi has quit IRC | 07:30 | |
| *** allisterb has quit IRC | 07:34 | |
| *** allisterb has joined #zope | 07:36 | |
| *** MyCatVerbs has quit IRC | 07:56 | |
| *** dunny has quit IRC | 08:01 | |
| *** tarek has joined #zope | 08:03 | |
| *** tarek has quit IRC | 08:10 | |
| *** tiwula has quit IRC | 08:10 | |
| *** dunny has joined #zope | 08:12 | |
| *** dunny has quit IRC | 08:16 | |
| *** dunny has joined #zope | 08:24 | |
| *** digitalmortician has quit IRC | 08:28 | |
| *** tarek has joined #zope | 08:32 | |
| *** BugeyeD has quit IRC | 08:42 | |
| *** BugeyeD has joined #zope | 08:44 | |
| *** tarek has quit IRC | 08:51 | |
| *** digitalmortician has joined #zope | 09:09 | |
| *** astoon has joined #zope | 09:12 | |
| *** goschtl has joined #zope | 09:12 | |
| *** gawel has quit IRC | 09:15 | |
| *** alga has joined #zope | 09:16 | |
| *** gawel has joined #zope | 09:20 | |
| *** MrWu has joined #zope | 09:27 | |
| *** astoon has left #zope | 09:30 | |
| *** phimic has joined #zope | 09:34 | |
| *** River_Rat is now known as RiverRat | 09:42 | |
| *** pthulin has joined #zope | 09:45 | |
| *** gawel has quit IRC | 09:49 | |
| *** gawel has joined #zope | 09:53 | |
| *** MrTango has joined #zope | 09:56 | |
| *** davisagli has quit IRC | 09:59 | |
| *** Kabz|4D has joined #zope | 10:01 | |
| *** agroszer has joined #zope | 10:10 | |
| *** MrWu has quit IRC | 10:17 | |
| *** sashav has joined #zope | 10:18 | |
| *** digitalmortician has quit IRC | 10:18 | |
| *** digitalmortician has joined #zope | 10:19 | |
| *** ignas has joined #zope | 10:20 | |
| *** agroszer has quit IRC | 10:22 | |
| *** smita has quit IRC | 10:23 | |
| *** JaRoel|4D has quit IRC | 10:51 | |
| *** gawel has quit IRC | 11:04 | |
| *** tarek has joined #zope | 11:10 | |
| planetzopebot | Integration of PloneGazette with plone.app.discussion (RedTurtle Technology) http://blog.redturtle.it/redturtle-blog/integration-of-plonegazette-and-plone.app.discussion | 11:10 |
| planetzopebot | This Month in Plone - March 2010 (Plone News) http://plone.org/news/thismonthinplone-march2010 | 11:10 |
| planetzopebot | Zope 2.12 eggified Installation Stuff Learned (ch-athens) http://betabug.ch/blogs/ch-athens/1048 | 11:11 |
| planetzopebot | Weekly Zope developer IRC meetings (Random notes from mg) http://mg.pov.lt/blog/weekly-zope-irc-meeting | 11:11 |
| betabug | wtf is that? | 11:11 |
| betabug | aha, planetzope got unclogged :-) | 11:11 |
| *** opsec has quit IRC | 11:15 | |
| *** gawel has joined #zope | 11:27 | |
| *** opsec has joined #zope | 11:29 | |
| *** avn has quit IRC | 11:29 | |
| *** KageSenshi has joined #zope | 11:31 | |
| *** KageSenshi has joined #zope | 11:31 | |
| *** avn has joined #zope | 11:33 | |
| *** MJ has joined #zope | 11:36 | |
| *** kleist has joined #zope | 11:43 | |
| *** KageSenshi has quit IRC | 11:48 | |
| *** KageSenshi has joined #zope | 11:51 | |
| *** MrWu has joined #zope | 11:52 | |
| *** bhagat has quit IRC | 11:58 | |
| *** bhagat has joined #zope | 11:59 | |
| *** MrWu has quit IRC | 12:07 | |
| *** _bluetouff has joined #zope | 12:09 | |
| *** do3cc_ has quit IRC | 12:15 | |
| *** do3cc has joined #zope | 12:16 | |
| *** do3cc has quit IRC | 12:17 | |
| *** do3cc has joined #zope | 12:18 | |
| *** do3cc has quit IRC | 12:19 | |
| *** do3cc has joined #zope | 12:19 | |
| *** thetet has joined #zope | 12:21 | |
| *** hever has joined #zope | 12:34 | |
| *** TomBlockley has joined #zope | 12:35 | |
| *** ccomb1 has joined #zope | 12:37 | |
| *** ccomb has quit IRC | 12:40 | |
| *** teix has joined #zope | 12:53 | |
| *** emrojo has joined #zope | 12:54 | |
| *** agroszer has joined #zope | 13:11 | |
| *** mcdonc has quit IRC | 13:17 | |
| *** agroszer_ has joined #zope | 13:19 | |
| *** KageSenshi has quit IRC | 13:38 | |
| *** seppo14 has joined #zope | 13:38 | |
| *** ignas has quit IRC | 13:42 | |
| *** aaronv has joined #zope | 13:55 | |
| *** vigith has joined #zope | 13:56 | |
| *** bhagat has quit IRC | 14:08 | |
| *** agroszer_ has quit IRC | 14:14 | |
| *** agroszer has quit IRC | 14:14 | |
| *** _srichter has quit IRC | 14:19 | |
| *** ignas has joined #zope | 14:23 | |
| *** hannosch has joined #zope | 14:24 | |
| *** emrojo has quit IRC | 14:26 | |
| *** emrojo has joined #zope | 14:27 | |
| *** mr_jolly has joined #zope | 14:30 | |
| *** JaRoel|4D has joined #zope | 14:30 | |
| *** bobo_b has quit IRC | 14:31 | |
| *** mcdonc has joined #zope | 14:37 | |
| *** aaronv has quit IRC | 14:38 | |
| *** thetet has quit IRC | 14:44 | |
| *** thetet has joined #zope | 14:44 | |
| *** KageSenshi has joined #zope | 14:46 | |
| *** bobo_b has joined #zope | 14:55 | |
| *** opsec has quit IRC | 14:59 | |
| *** agroszer has joined #zope | 15:00 | |
| *** agroszer_ has joined #zope | 15:00 | |
| *** agroszer_ has quit IRC | 15:02 | |
| *** photon has joined #zope | 15:03 | |
| *** dunny has quit IRC | 15:04 | |
| photon | Hello guys. Quick question: is Zope, especially the part that parses incoming HTTP requests and generates HTTP responses, completely written in Python or does it also use C? | 15:04 |
| betabug | there are some parts in C | 15:04 |
| betabug | not sure where exactly they are | 15:05 |
| *** opsec has joined #zope | 15:07 | |
| *** bobo_b_ has joined #zope | 15:07 | |
| *** _srichter has joined #zope | 15:14 | |
| *** _srichter is now known as srichter | 15:14 | |
| *** hillsy has joined #zope | 15:23 | |
| *** allisterb_ has joined #zope | 15:24 | |
| *** seppo14 has quit IRC | 15:26 | |
| *** allisterb has quit IRC | 15:27 | |
| *** River_Rat has joined #zope | 15:27 | |
| *** RiverRat has quit IRC | 15:29 | |
| ignas | how do I use a db connection from inside a product in Zope2? | 15:31 |
| *** benji has joined #zope | 15:35 | |
| betabug | SQL db connection? | 15:36 |
| ignas | yes | 15:40 |
| *** TomBlockley has quit IRC | 15:40 | |
| *** shinygiftson has quit IRC | 15:40 | |
| ignas | i have the Products.ZMySQLDA.DA.Connection object, but can't find docs on how to run queries using it? | 15:41 |
| photon | MySQL, bah. | 15:41 |
| betabug | well, there is a chapter in the Zope book on docs.zope.org and there is another tutorial | 15:41 |
| *** photon has quit IRC | 15:41 | |
| betabug | MySuckL | 15:41 |
| betabug | ignas: here is the other tutorial: http://www.upfrontsystems.co.za/courses/zope | 15:42 |
| ignas | emm | 15:42 |
| ignas | not sure if I am looking right, but there is an explanation for how to add a method TTW and then use the method | 15:43 |
| ignas | i can do that, but I want to do it with a file system product | 15:43 |
| *** sawdog has joined #zope | 15:44 | |
| betabug | hmmm, yeah, there is a way to do that, but since I don't use SQL, I don't have it handy | 15:44 |
| ignas | and what do you suggest to use instead of mysql? ZO i need a PHD to write an evolution script correctly DB? ;) | 15:45 |
| betabug | uhmmm, you know you already have the ZODB right under your behind there? | 15:45 |
| ignas | yes I know, DB is not my choice, I just feel it is unfair to call MySQL MySuckL, especially when using ZODB ;) | 15:46 |
| betabug | well, there are other, more robust SQL dbs, you know | 15:48 |
| betabug | and ZODB is *very* robust | 15:48 |
| mcdonc | cmf has a thing called "fssqlmethods" | 15:48 |
| betabug | zsql methods can be placed in file system products | 15:49 |
| ignas | betabug, my gripe is not robustness | 15:49 |
| mcdonc | well that's all he's asking how to do | 15:49 |
| ignas | betabug, hmm, any examples? | 15:49 |
| betabug | I just don't happen to remember how it worked | 15:49 |
| betabug | let's see, my friend Wu did this kind of stuff recently | 15:49 |
| betabug | maybe he is around | 15:49 |
| mcdonc | we actually wrote our own thing for this | 15:50 |
| mcdonc | https://agendaless.com/Members/tseaver/software/sqladapters/ | 15:50 |
| mcdonc | err, better https://agendaless.com/Members/tseaver/software/sqladapters/sqladapters-1.0/README.txt/ | 15:50 |
| betabug | does it do more than plain zsql methods? | 15:51 |
| *** binbrain has joined #zope | 15:51 | |
| betabug | not that I'd need either right now :-) | 15:51 |
| mcdonc | well it satisfies the reqt at hand to not put sql in the zodb | 15:51 |
| mcdonc | other than that, i dunno, you can do the comparison yourself | 15:52 |
| betabug | I could, if I'd be using the stuff :-) | 15:52 |
| mcdonc | yup, then dont ask ;-) | 15:52 |
| ignas | comparison to what? | 15:53 |
| ignas | i can see that it does a bit more | 15:53 |
| ignas | i think I can come up with something of my own looking at that code | 15:56 |
| mcdonc | cool | 15:57 |
| betabug | there seem to be about 5 add-on products to do it, but I seem to remember from around 2003 that it was possible without using extra products | 15:57 |
| mcdonc | also here ftr http://svn.agendaless.com/Products.sqladapters/ | 15:58 |
| betabug | peterbe has a product too | 15:58 |
| betabug | and there are a couple of older ones | 15:58 |
| mcdonc | (the code in svn appears to be newer) | 15:58 |
| betabug | what a surprise ;-) | 15:58 |
| mcdonc | materially newer, i mean.. the version number is 1.3 | 15:59 |
| *** lurkymclurkleton has joined #zope | 15:59 | |
| *** lurkymclurkleton has quit IRC | 16:00 | |
| *** lurkymclurkleton has joined #zope | 16:00 | |
| *** lurkymclurkleton has quit IRC | 16:00 | |
| *** jwhisnant has joined #zope | 16:04 | |
| *** KageSenshi has quit IRC | 16:04 | |
| *** hever has quit IRC | 16:08 | |
| ignas | mcdonc, thanks, all I needed was "items, data = my_connection.query(nvSQL(template, {'param': 16}, max_rows=500))" | 16:10 |
| planetzopebot | The Knights Who Say Py! (Lennart Regebro: Plone consulting) http://regebro.wordpress.com/2010/03/04/the-knights-who-say-py/ | 16:11 |
| ignas | so true | 16:13 |
| *** TomBlockley has joined #zope | 16:15 | |
| *** TomBlockley has joined #zope | 16:15 | |
| *** binbrain has quit IRC | 16:17 | |
| *** kevin7kal has joined #zope | 16:20 | |
| *** redir has quit IRC | 16:27 | |
| *** redir has joined #zope | 16:28 | |
| *** redir has quit IRC | 16:28 | |
| *** JaRoel|4D has quit IRC | 16:34 | |
| *** JaRoel|4D has joined #zope | 16:35 | |
| *** vigith has quit IRC | 16:36 | |
| *** jbglenn has joined #zope | 16:40 | |
| *** hillsy has quit IRC | 16:41 | |
| Wu | ignas: still there? | 16:43 |
| ignas | yes | 16:43 |
| ignas | I am always on IRC when I work ;) | 16:43 |
| Wu | hi | 16:44 |
| ignas | hi | 16:44 |
| Wu | if I could help anyhow... | 16:44 |
| Wu | I've an old-style zope app that uses ZSQLMethods | 16:44 |
| Wu | the trick that worked for me was to create first the ZSQLMethods within the ZMI | 16:45 |
| Wu | (with the SQL staments inside) | 16:45 |
| Wu | then I put the ZSQLObjects into the filesystem | 16:45 |
| Wu | and I've a code in my product that, each time you create a new instance of the app within a zope server, the ZSQLMEthods are "uploaded" to the ZODB | 16:46 |
| Wu | so they are accesible for dtml/zpt/python scripts | 16:46 |
| ignas | i don't know, I found the oneliner I posted the best effort/results combination | 16:47 |
| Wu | you should search for "Filesystem ZSQLMethod" and variants, there are some websites with doc about how to do it | 16:47 |
| Wu | mmm | 16:47 |
| ignas | I mean - I simply load the dtml template, and pass it to nvSQL | 16:47 |
| Wu | ignas | mcdonc, thanks, all I needed was "items, data = my_connection.query(nvSQL(template, {'param': 16}, max_rows=500))" <- that? | 16:47 |
| ignas | yes | 16:47 |
| *** aaronv has joined #zope | 16:47 | |
| Wu | and that worked for you? | 16:47 |
| ignas | the results need processing | 16:47 |
| *** sashav has quit IRC | 16:48 | |
| ignas | but that is very easy to do, and all I need it is for a couple of update and add queries | 16:48 |
| ignas | which is why I don't want to pull in any other products as not to complicate the deployment | 16:48 |
| Wu | what I do with ZSQLMethods is allow for "traversing" (I think that's the correct term) | 16:48 |
| Wu | then you can call http://yoursite/yourZSQLMethod/parameters/template | 16:48 |
| ignas | I understand, but my usecase has 1 view | 16:48 |
| ignas | for the whole product | 16:49 |
| Wu | the zsqlmethod (the query) is then executed, even passing parameters and then the result will go into the ZPT template | 16:49 |
| Wu | there you can parse the results | 16:49 |
| ignas | nice and generic, but not what I need at the moment, I might need it later if i'll try to migrate 10 Kloc of sql dtml methods to the file system though | 16:51 |
| ignas | Wu, ant place I can find your code? | 16:51 |
| Wu | not public (yet) | 16:51 |
| ignas | ahh, I see | 16:51 |
| Wu | but there are a lot of examples in the zope book | 16:51 |
| Wu | take a look in the "connecting with databases" section | 16:52 |
| *** baijum has quit IRC | 16:54 | |
| ignas | I looked at it, and it was all TTW | 16:54 |
| ignas | without any code examples that would deal directly with templates and connections | 16:55 |
| Wu | mmm, hold on | 16:56 |
| Wu | perhaps I could show you some code | 16:57 |
| *** BGaddie has quit IRC | 16:59 | |
| ignas | thanks, i have to go afk a bit | 17:01 |
| ignas | be back in a few minutes | 17:01 |
| *** TomBlockley has quit IRC | 17:01 | |
| *** olavgg has quit IRC | 17:01 | |
| Wu | ignas: http://paste.e-shell.org/text788712046 <- the zsql method | 17:03 |
| Wu | http://paste.e-shell.org/html788712047 <- template | 17:03 |
| Wu | (forget about the names, it is spanish) | 17:03 |
| Wu | the zsqlmethod accepts one parameter, cliente_id, and allows traverse | 17:03 |
| Wu | so | 17:03 |
| Wu | in my app I can do | 17:03 |
| Wu | http://myapp/zsqlmethod_id/14/zpttemplate_id | 17:04 |
| *** pthulin has quit IRC | 17:04 | |
| Wu | the sql query is executed with cliente_id=14, then the result is passed into the template | 17:04 |
| *** TomBlockley has joined #zope | 17:04 | |
| *** TomBlockley has quit IRC | 17:05 | |
| *** TomBlockley has joined #zope | 17:05 | |
| Wu | in the zpt you can see all the tal:attributes and tal:content stuff | 17:05 |
| Wu | where I use the results values from the query | 17:05 |
| Wu | I don't know if that helps... :| | 17:05 |
| *** alga has quit IRC | 17:07 | |
| *** KageSenshi has joined #zope | 17:07 | |
| *** jan_s has quit IRC | 17:10 | |
| sm | morning all | 17:11 |
| *** jan_s has joined #zope | 17:11 | |
| *** runyaga has joined #zope | 17:12 | |
| *** webmaven has joined #zope | 17:22 | |
| ignas | Wu, thanks | 17:22 |
| *** pyqwer has joined #zope | 17:24 | |
| *** alvaro has joined #zope | 17:27 | |
| pyqwer | Hi, perhaps you have a good advice: I have an application with some web forms, whereas each form is implemented via a View class. The form data is stored into a RDB. Now I need to display a stored form and need to instantiate/fill the appropriate form. How do I get the right View class? | 17:29 |
| pyqwer | I thought about storing ViewClass.__class__.__name__ in the database along with the form data. But that's a bit ugly, I think. | 17:30 |
| ignas | pyqwer, which Zope? | 17:32 |
| ignas | pyqwer, and which version? | 17:32 |
| *** digilord has joined #zope | 17:32 | |
| pyqwer | Zope 3 | 17:32 |
| pyqwer | 3.4 | 17:32 |
| ignas | emm, is the "context" always same? | 17:33 |
| pyqwer | Hmmm, this is a custom solution - I take the form data, serialize it and stuff it into my RDB. | 17:33 |
| ignas | if so - why can't you store the name of the view and just queryAdapter((IObject, IRequest), name=name_loaded_from_db) | 17:33 |
| pyqwer | The context is not the data, unfortunately. | 17:34 |
| ignas | well - you only need this to look up the view | 17:34 |
| ignas | you can getAdapters() | 17:34 |
| ignas | for example | 17:35 |
| pyqwer | Yes. I can store something along with the serialized dictionary in my RDB. I thought about perhaps the classname of the context. | 17:35 |
| ignas | my point is - your views are already registered in the Component Architecture, and is registered using a "name" | 17:35 |
| ignas | that is a string identifier | 17:35 |
| pyqwer | getAdapters() would be fine, if only I had the context. | 17:35 |
| ignas | if you need to retrieve a class without the context | 17:36 |
| ignas | then register your views as Utilities | 17:36 |
| ignas | named utilities implementing some interface | 17:36 |
| ignas | and store the names of the utilities | 17:36 |
| *** seppo14 has joined #zope | 17:36 | |
| *** milele has quit IRC | 17:36 | |
| ignas | so you could move the classes around some day | 17:36 |
| pyqwer | Yes, that was something I thought of, although I don't yet understand it. | 17:37 |
| ignas | if you want to look up a component, and you don't have a context - use an utility | 17:37 |
| *** allisterb_ has quit IRC | 17:37 | |
| pyqwer | I already registered them as adapters as I need that in another scenario: <adapter | 17:38 |
| pyqwer | factory="zbsp.browser.payment.ViewBankCollectionSEPA" | 17:38 |
| pyqwer | provides="zbsp.browser.interfaces.IActionSubform" | 17:38 |
| pyqwer | /> | 17:38 |
| ignas | well - register them as utilities TOO | 17:38 |
| ignas | it won't conflict | 17:38 |
| pyqwer | Ok. Yes. And then I choose some arbitrary name for it and store this name in the RDB? | 17:39 |
| ignas | and if it is always a pair - you can go the extra mile and write a custom zcml directive (kidding) | 17:39 |
| ignas | yes | 17:39 |
| ignas | store that name in the RDB | 17:39 |
| pyqwer | O.k., only shortcome of this is that I need to specify this name twice: Once in the ViewClass, where the RDB storage is located, and in the ZCML code for the utility... Any way to combine this? | 17:40 |
| *** redir has joined #zope | 17:40 | |
| *** baijum has joined #zope | 17:42 | |
| ignas | no, sorry, that's one of the fails of ZCA | 17:45 |
| ignas | ok - not ZCA | 17:45 |
| ignas | in grok - you could do that | 17:45 |
| ignas | only once | 17:45 |
| ignas | from what I can recall | 17:46 |
| ignas | point is - you can have the same class registered twice in ZCML using different names, I don't know why getAdapter does not decorate the class with the name you used to retrieve it | 17:47 |
| ignas | but it does not | 17:47 |
| *** Arfrever has joined #zope | 17:48 | |
| *** digitalmortician has quit IRC | 17:48 | |
| pyqwer | ignas: Ok, but I can nevertheless register it twice - once as an adapter, second as a utility, right? | 17:49 |
| *** sm has quit IRC | 17:50 | |
| *** alecm has joined #zope | 17:53 | |
| ignas | yes | 17:58 |
| ignas | hmm, ok, not sure now, depends on it's constructor | 17:58 |
| *** hever has joined #zope | 17:58 | |
| ignas | ahh | 17:58 |
| ignas | you can register the "class" | 17:58 |
| ignas | as a utility I think | 17:59 |
| ignas | not instance | 17:59 |
| ignas | pyqwer, if you understad what I am saying | 17:59 |
| *** thetet has quit IRC | 18:04 | |
| *** goschtl has quit IRC | 18:05 | |
| pyqwer | ignas: Ok, thanks, that will do. | 18:07 |
| *** kleist has quit IRC | 18:08 | |
| *** Kabz|4D_ has joined #zope | 18:17 | |
| *** Kabz|4D has quit IRC | 18:17 | |
| *** sm has joined #zope | 18:18 | |
| *** Kabz|4D_ has quit IRC | 18:22 | |
| *** JaRoel|4D has quit IRC | 18:26 | |
| *** JaRoel|4D has joined #zope | 18:26 | |
| *** Kabz|4D has joined #zope | 18:34 | |
| *** emrojo has quit IRC | 18:37 | |
| *** emrojo has joined #zope | 18:38 | |
| *** phimic has quit IRC | 18:43 | |
| *** daMaestro has joined #zope | 18:44 | |
| *** MJ has quit IRC | 18:56 | |
| *** digitalmortician has joined #zope | 18:59 | |
| *** seppo14 has quit IRC | 19:06 | |
| *** eperez has joined #zope | 19:07 | |
| *** avn has quit IRC | 19:17 | |
| *** davisagli has joined #zope | 19:17 | |
| *** avn has joined #zope | 19:19 | |
| *** JaRoel|4D has quit IRC | 19:21 | |
| *** tiwula has joined #zope | 19:21 | |
| *** tarek has quit IRC | 19:27 | |
| *** emrojo has quit IRC | 19:33 | |
| *** bobo_b has quit IRC | 19:37 | |
| *** seppo14 has joined #zope | 19:45 | |
| *** daMaestro has quit IRC | 19:49 | |
| *** hannosch has quit IRC | 19:52 | |
| *** r0ver has joined #zope | 19:53 | |
| *** daMaestro has joined #zope | 19:53 | |
| *** hever has quit IRC | 19:55 | |
| *** kosh has quit IRC | 19:56 | |
| *** febb has quit IRC | 20:05 | |
| *** TomBlockley_ has joined #zope | 20:18 | |
| *** TomBlockley has quit IRC | 20:20 | |
| *** TomBlockley_ is now known as TomBlockley | 20:20 | |
| *** ccomb1 is now known as ccomb | 20:20 | |
| *** ignas has quit IRC | 20:25 | |
| *** MJ has joined #zope | 20:26 | |
| *** MJ has quit IRC | 20:26 | |
| *** tarek has joined #zope | 20:26 | |
| *** webmaven_ has joined #zope | 20:27 | |
| *** MJ has joined #zope | 20:27 | |
| *** MJ has quit IRC | 20:27 | |
| *** MJ has joined #zope | 20:28 | |
| *** MJ has quit IRC | 20:28 | |
| *** TresEquis has joined #zope | 20:28 | |
| *** ccomb has quit IRC | 20:29 | |
| *** ccomb has joined #zope | 20:29 | |
| *** MJ has joined #zope | 20:29 | |
| *** mcdonc has quit IRC | 20:30 | |
| *** webmaven has quit IRC | 20:30 | |
| *** kevin7kal is now known as kevinkal | 20:30 | |
| *** MJ has quit IRC | 20:31 | |
| *** RaFromBRC has joined #zope | 20:31 | |
| *** eperez has quit IRC | 20:32 | |
| *** tarek has quit IRC | 20:33 | |
| *** TomBlockley has quit IRC | 20:37 | |
| *** baijum has quit IRC | 20:38 | |
| *** Kabz|4D has quit IRC | 20:43 | |
| *** Hypergraphe has joined #zope | 20:45 | |
| *** agroszer_ has joined #zope | 20:50 | |
| *** agroszer has quit IRC | 20:50 | |
| *** webmaven_ has quit IRC | 21:00 | |
| *** kosh has joined #zope | 21:07 | |
| *** JaRoel|4D has joined #zope | 21:10 | |
| *** RaFromBRC has quit IRC | 21:11 | |
| *** RaFromBRC has joined #zope | 21:13 | |
| *** RaFromBRC has quit IRC | 21:13 | |
| *** RaFromBRC has joined #zope | 21:13 | |
| *** runyaga has quit IRC | 21:14 | |
| *** srichter has quit IRC | 21:22 | |
| *** mcdonc has joined #zope | 21:25 | |
| *** Arfrever has quit IRC | 21:30 | |
| *** grahal has quit IRC | 21:32 | |
| *** grahal has joined #zope | 21:32 | |
| *** BGaddie has joined #zope | 21:32 | |
| *** srichter has joined #zope | 21:33 | |
| *** webmaven_ has joined #zope | 21:36 | |
| *** Mardenkein has joined #zope | 21:55 | |
| *** dunny has joined #zope | 21:56 | |
| *** jwhisnant has quit IRC | 22:09 | |
| *** r0ver is now known as r0ver|meeting | 22:10 | |
| *** kohsa has quit IRC | 22:11 | |
| *** srichter has quit IRC | 22:14 | |
| *** srichter has joined #zope | 22:14 | |
| *** spamsch has joined #zope | 22:15 | |
| *** River_Rat is now known as RiverRat | 22:20 | |
| *** seppo14 has quit IRC | 22:24 | |
| *** dunny has quit IRC | 22:24 | |
| *** ccomb has quit IRC | 22:25 | |
| *** runyaga has joined #zope | 22:25 | |
| *** daMaestro has quit IRC | 22:27 | |
| *** allisterb has joined #zope | 22:35 | |
| *** alga has joined #zope | 22:45 | |
| *** ignas has joined #zope | 22:45 | |
| *** TomBlockley has joined #zope | 22:46 | |
| *** pyqwer has quit IRC | 22:47 | |
| *** redir has quit IRC | 22:55 | |
| *** teix has left #zope | 22:58 | |
| *** Vejeta has quit IRC | 23:00 | |
| *** Vejeta has joined #zope | 23:02 | |
| *** Vejeta has quit IRC | 23:03 | |
| *** Kabz|4D has joined #zope | 23:04 | |
| *** TomBlockley has quit IRC | 23:06 | |
| *** sashav has joined #zope | 23:14 | |
| *** agroszer_ has quit IRC | 23:17 | |
| *** webmaven_ has quit IRC | 23:19 | |
| *** webmaven_ has joined #zope | 23:19 | |
| sm | yes.. buildout-based setups sure are a bit of a pain for admins/basic site developers | 23:22 |
| *** r0ver|meeting is now known as r0ver | 23:33 | |
| *** webmaven_ is now known as webmaven | 23:36 | |
| *** digitalmortician has quit IRC | 23:39 | |
| *** r0ver has left #zope | 23:39 | |
| TresEquis | sm: whom were you answering? | 23:48 |
| sm | hi TresEquis .. noone in particular | 23:49 |
| sm | I've had time to get used to working with one, and it makes the kind of thing I'm doing harder | 23:49 |
| *** tarek has joined #zope | 23:57 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!