*** faassen has joined #zope3-dev | 00:01 | |
*** edgordon has quit IRC | 00:03 | |
*** droogie has quit IRC | 00:06 | |
*** gumpa has quit IRC | 00:10 | |
*** faassen has quit IRC | 00:21 | |
*** srichter has quit IRC | 00:23 | |
*** srichter has joined #zope3-dev | 00:25 | |
*** mjocius has joined #zope3-dev | 00:33 | |
*** regebro has quit IRC | 00:36 | |
*** natea is now known as natea|away | 00:38 | |
*** batlogg_ has joined #zope3-dev | 00:42 | |
*** batlogg has quit IRC | 00:43 | |
*** whit has quit IRC | 00:55 | |
*** whit has joined #zope3-dev | 00:57 | |
*** rocky is now known as rocky|away | 01:19 | |
*** batlogg_ has quit IRC | 01:26 | |
*** andres has quit IRC | 01:27 | |
*** grahal has quit IRC | 01:28 | |
*** pelle_ has quit IRC | 01:28 | |
*** rmarianski has quit IRC | 01:28 | |
*** alecm has quit IRC | 01:35 | |
*** whit has quit IRC | 01:36 | |
*** alecm has joined #zope3-dev | 01:38 | |
*** J1m has quit IRC | 01:48 | |
*** mjocius has left #zope3-dev | 01:53 | |
*** droogie_ has quit IRC | 02:11 | |
*** niemeyer has quit IRC | 02:13 | |
*** BjornT has quit IRC | 03:37 | |
*** BjornT has joined #zope3-dev | 03:38 | |
*** ChanServ sets mode: +o srichter | 04:01 | |
*** whit has joined #zope3-dev | 04:06 | |
*** whit has quit IRC | 04:42 | |
*** alecm has quit IRC | 05:23 | |
*** stub has joined #zope3-dev | 06:07 | |
*** baijum has joined #zope3-dev | 07:37 | |
*** ignas has quit IRC | 08:12 | |
*** eins has joined #zope3-dev | 08:28 | |
*** opetznick has joined #zope3-dev | 08:28 | |
*** hedix has joined #zope3-dev | 08:31 | |
*** alecm has joined #zope3-dev | 08:37 | |
*** opetznick has quit IRC | 08:44 | |
*** timte has joined #zope3-dev | 08:53 | |
*** opetznick has joined #zope3-dev | 09:05 | |
*** opetznick has quit IRC | 09:09 | |
*** jfroche has joined #zope3-dev | 09:19 | |
*** ghendi has joined #zope3-dev | 09:28 | |
*** batlogg has joined #zope3-dev | 09:30 | |
ghendi | hi | 09:33 |
---|---|---|
ghendi | whom could I address some questions? | 09:33 |
*** alecm has quit IRC | 09:33 | |
ghendi | regarding Zope :) | 09:34 |
ghendi | I'm new here, also a newbie :P just need little help | 09:36 |
*** philiKON_ has joined #zope3-dev | 09:38 | |
*** opetznick has joined #zope3-dev | 09:43 | |
*** philiKON has quit IRC | 09:45 | |
*** jfroche has quit IRC | 09:45 | |
*** pelle_ has joined #zope3-dev | 09:45 | |
ghendi | about i18n, what is wrong here | 09:48 |
ghendi | subject = _("You have received an ecard from ${exp_name}!", mapping={"exp_name":sentcard.exp_name}) | 09:48 |
*** dobee has joined #zope3-dev | 09:48 | |
romanofski | morjens | 09:49 |
ghendi | result is: subject = _("You have received an ecard from ${exp_name}!", mapping={"exp_name":sentcard.exp_name}) | 09:49 |
ghendi | sorry, result is: u'You have received an ecard from ${exp_name}!' | 09:49 |
ghendi | any idde why is not replacing exp_name? | 09:51 |
ghendi | any idea? | 09:51 |
*** whit has joined #zope3-dev | 09:57 | |
philiKON_ | ghendi: what are you doing with this message ID? | 10:04 |
philiKON_ | if you're inserting it into a page template, it should be translated (and interpolated) automatically | 10:04 |
philiKON_ | if not, you need to trigger interpolation | 10:04 |
philiKON_ | e.g. with zope.i18n.translate(msgid, context=request) | 10:04 |
febb | hey philiKON how are you ? | 10:04 |
philiKON_ | hey febb | 10:04 |
febb | nice to see you online again. ! .. | 10:05 |
philiKON_ | same here | 10:08 |
febb | great.. I 've been working on the training project for march. maybe later on we can chat a little bit about it....I am logging off now, its 2:10am here. ;) | 10:10 |
ghendi | tx philiKON! | 10:12 |
ghendi | I'm not using thi in a template, I'll send an email with that, hope that translation has a sense in this case and will able to use it, no? | 10:14 |
philiKON_ | sure | 10:14 |
*** dobee has joined #zope3-dev | 10:14 | |
philiKON_ | but then you need to translate manually | 10:15 |
philiKON_ | translation doesn't happen automagically (except in zpts) | 10:15 |
*** dobee has quit IRC | 10:15 | |
febb | well...talk to you later. take care. | 10:15 |
febb | later all. ! | 10:15 |
febb | ;) ZZZzzz | 10:15 |
ghendi | ok, it works, tx! | 10:16 |
*** dobee has joined #zope3-dev | 10:16 | |
*** kobold has joined #zope3-dev | 10:24 | |
*** batlogg has quit IRC | 10:34 | |
*** hdima has joined #zope3-dev | 10:38 | |
*** jinty has joined #zope3-dev | 10:46 | |
*** batlogg has joined #zope3-dev | 10:47 | |
*** ignas has joined #zope3-dev | 10:48 | |
*** HakTom has joined #zope3-dev | 10:50 | |
*** whit has quit IRC | 10:59 | |
*** opetznick has quit IRC | 10:59 | |
*** opetznick has joined #zope3-dev | 11:31 | |
*** henri_ has joined #zope3-dev | 11:32 | |
*** henri_ has left #zope3-dev | 11:45 | |
*** tgkuoZp has joined #zope3-dev | 11:50 | |
*** tgkuoZp has left #zope3-dev | 11:54 | |
*** dunny has quit IRC | 12:02 | |
*** Mihaly has joined #zope3-dev | 12:07 | |
Mihaly | Hello there! | 12:07 |
*** pelle_ has quit IRC | 12:09 | |
Mihaly | I have a problem with ZOPE3 Folders. This must be a known bug, but i did not really find a sulution on the web. If i create a Folder then a ZPT Page inside it with the content <span tal:content="python: container.keys()" /> and call the ZPT Page then i receive an OOBTreeItems' object has no attribute '__class__' error. What now? Thanks. | 12:11 |
*** pelle_ has joined #zope3-dev | 12:12 | |
*** alienoid has joined #zope3-dev | 12:20 | |
*** alienoid has left #zope3-dev | 12:20 | |
timte | Mihaly: what happens if you try <span tal.content="python: list(context.keys())" /> | 12:23 |
Mihaly | i'll try | 12:23 |
Mihaly | hmm, seem to work... why is that ? | 12:26 |
timte | .keys() returns a OOBTreeItems object, not a list, but I'm not sure why it's done that way | 12:27 |
timte | maybe it's because iterating over OOBTreeItems is faster | 12:28 |
timte | so list(OOBTreeItems) returns the actual list | 12:28 |
Mihaly | ahh, that makes sense | 12:29 |
Mihaly | still, i should not receive an error | 12:31 |
timte | philiKON_: Found something on page 148. Do you want to know erratas or should I shut the f*** up? | 12:31 |
timte | Mihaly: I guess TAL is calling __call__ on objects to get back something it can display, on builtin types it doesn't need to | 12:31 |
timte | Mihaly: much guessing here, don't know the details :) | 12:33 |
Mihaly | no prob, thanks | 12:34 |
timte | as the gurus are not always available here to answer questions, perhaps a few guesses is better than nothing :) | 12:36 |
Mihaly | absolutely | 12:36 |
Mihaly | :) | 12:36 |
*** grahal has joined #zope3-dev | 12:45 | |
philiKON_ | timte: no, i'm very interested | 12:52 |
timte | philiKON_: ok, so page 148, time_to_cook schema field has an interesting description argument | 12:54 |
philiKON_ | yeah, it's a typesetting problem | 12:54 |
philiKON_ | it's correct, though | 12:54 |
philiKON_ | if you look at it, line 52 is split over two line | 12:54 |
philiKON_ | s | 12:55 |
timte | ah | 12:55 |
timte | doesn't the first line have to end with \ or + ? | 12:56 |
philiKON_ | no | 12:56 |
philiKON_ | x = "a" "b" | 12:56 |
philiKON_ | x = "ab" | 12:56 |
timte | oh, cool | 12:56 |
philiKON_ | (it's the same) | 12:56 |
*** mgedmin has joined #zope3-dev | 13:22 | |
*** grahal has quit IRC | 13:22 | |
*** grahal has joined #zope3-dev | 13:23 | |
*** rocky|away has quit IRC | 13:42 | |
*** eins has quit IRC | 13:46 | |
*** eins has joined #zope3-dev | 13:49 | |
*** rocky has joined #zope3-dev | 13:55 | |
*** BjornT has quit IRC | 14:00 | |
*** BjornT has joined #zope3-dev | 14:00 | |
*** HakTom has quit IRC | 14:11 | |
*** EDVINAS_ has joined #zope3-dev | 14:16 | |
*** hedix has quit IRC | 14:16 | |
*** BjornT has quit IRC | 14:18 | |
*** BjornT has joined #zope3-dev | 14:18 | |
*** henri_ has joined #zope3-dev | 14:24 | |
*** grahal is now known as grahalAFK | 14:24 | |
*** alga has joined #zope3-dev | 14:25 | |
*** siren99 has joined #zope3-dev | 14:36 | |
*** rocky is now known as rocky|away | 14:55 | |
*** baijum changes topic to "logs available at http://zope3.pov.lt/irclogs/ || paste code examples into http://zope3.pastebin.com/ or http://paste.plone.org/ || Zope 3.3.0 is out || bugs live at http://www.zope.org/Collectors/Zope3-dev || Wiki at http://wiki.zope.org/zope3 || FAQ at http://wiki.zope.org/zope3/FAQ" | 14:58 | |
ghendi | hi all | 15:00 |
ghendi | def create(self, data): | 15:00 |
ghendi | sentcard = createObject(u'sentcard.SentCard') | 15:00 |
ghendi | applyChanges (sentcard, self.form_fields, data) | 15:00 |
ghendi | return sentcard | 15:00 |
ghendi | how can I give a name to "sentcard" object? | 15:01 |
baijum | ghendi, http://wiki.zope.org/zope3/FAQ#how-to-give-unique-name-for-an-object-within-a-container | 15:02 |
ghendi | thank you | 15:03 |
*** mkerrin has joined #zope3-dev | 15:10 | |
ghendi | hmm | 15:10 |
ghendi | and for my example how can I apply this? | 15:11 |
ghendi | from zope.app.container.interfaces import INameChooser | 15:11 |
ghendi | Name will be assigned from 'create' or 'createAndAdd' methods, here is an eg: | 15:11 |
ghendi | def create(self, data): | 15:11 |
ghendi | mycontainer = MyObject() | 15:11 |
ghendi | mycontainer.val1 = data['val1] | 15:11 |
ghendi | anotherobj = AnotherObject() | 15:11 |
ghendi | anotherobj.value1 = data['value1] | 15:11 |
ghendi | namechooser = INameChooser(mycontainer) | 15:11 |
ghendi | name = chooser.chooseName('AnotherObj', anotherobj) | 15:11 |
ghendi | mycontainer[name] = anotherobj | 15:11 |
ghendi | return mycontainer | 15:11 |
*** sureshvv has joined #zope3-dev | 15:31 | |
*** baijum has quit IRC | 15:37 | |
mgedmin | ghendi: are you using formlib's AddForm? | 15:47 |
*** henri_ has left #zope3-dev | 15:49 | |
mgedmin | if so you may want to do self.context.contentName = data['somefield'] | 15:49 |
mgedmin | I find that answer in the FAQ either misleading or not entirely correct | 15:49 |
ghendi | yes I'm using AddForm | 15:57 |
ghendi | it works | 15:59 |
ghendi | tx | 15:59 |
*** faassen has joined #zope3-dev | 15:59 | |
*** b_52Free has quit IRC | 16:02 | |
*** b_52Free has joined #zope3-dev | 16:02 | |
*** stub has quit IRC | 16:03 | |
*** J1m has joined #zope3-dev | 16:08 | |
*** siren99 has quit IRC | 16:22 | |
*** rocky|away is now known as rocky | 16:32 | |
*** roym has joined #zope3-dev | 16:35 | |
roym | what is the best way to automate packing of a z3 zodb? | 16:36 |
*** EDVINAS_ has quit IRC | 16:51 | |
*** eins has quit IRC | 16:56 | |
*** gintas has joined #zope3-dev | 17:01 | |
*** alecm has joined #zope3-dev | 17:03 | |
*** ghendi has quit IRC | 17:09 | |
*** pelle_ has quit IRC | 17:09 | |
*** hdima has quit IRC | 17:11 | |
*** jhauser has joined #zope3-dev | 17:19 | |
*** philiKON_ has quit IRC | 17:22 | |
*** kobold has left #zope3-dev | 17:23 | |
roym | To automate packing a zodb: looking on the web suggests that I find some way to call (wget?) container.Control_Panel.Database.manage_pack(days=PACKDAYS). I know that z2 had cron scripts for this stuff - just wondering if something similair existed for z3. | 17:23 |
*** ignas has quit IRC | 17:32 | |
*** alecm has quit IRC | 17:55 | |
*** gintas has quit IRC | 18:01 | |
*** opetznick has quit IRC | 18:26 | |
rocky | hm, is there a documented set of rules someplace for deriving how the "most specific" interface is derived when doing component mapping? | 18:31 |
*** hazmat has joined #zope3-dev | 18:38 | |
*** ChanServ sets mode: +o hazmat | 18:38 | |
*** hazmat has quit IRC | 18:38 | |
*** __mac__ has quit IRC | 18:45 | |
*** grahalAFK is now known as grahal | 18:50 | |
*** oferw has joined #zope3-dev | 18:57 | |
*** alecm has joined #zope3-dev | 19:05 | |
*** grahal has quit IRC | 19:08 | |
*** grahal has joined #zope3-dev | 19:12 | |
*** philiKON has joined #zope3-dev | 19:15 | |
*** alga has quit IRC | 19:18 | |
*** d2m has left #zope3-dev | 19:24 | |
*** SmokeyD has joined #zope3-dev | 19:29 | |
*** dobee has quit IRC | 19:30 | |
*** philiKON has quit IRC | 19:40 | |
*** mgedmin has quit IRC | 19:42 | |
*** batlogg has quit IRC | 20:00 | |
*** batlogg has joined #zope3-dev | 20:04 | |
*** d2m has joined #zope3-dev | 20:05 | |
*** pelle_ has joined #zope3-dev | 20:21 | |
*** faassen has quit IRC | 20:33 | |
J1m | rocky, look at the adapter doctests. | 20:38 |
J1m | roym, ZODB includes a zeopack script that you can use from a cron job. | 20:38 |
J1m | Assuming that you are using ZEO, of course. | 20:39 |
*** harobed has joined #zope3-dev | 20:49 | |
roym | J1m, thanks. | 20:58 |
*** roym has quit IRC | 20:58 | |
*** febb has quit IRC | 21:00 | |
*** febb has joined #zope3-dev | 21:01 | |
*** dobee has joined #zope3-dev | 21:02 | |
*** dobee_ has joined #zope3-dev | 21:04 | |
*** dobee has quit IRC | 21:04 | |
*** gumpa has joined #zope3-dev | 21:06 | |
*** opetznick has joined #zope3-dev | 21:09 | |
*** batlogg has quit IRC | 21:12 | |
*** gumpa has quit IRC | 21:12 | |
*** harobed has quit IRC | 21:14 | |
*** harobed has joined #zope3-dev | 21:36 | |
*** HakTom has joined #zope3-dev | 21:39 | |
*** dunny has joined #zope3-dev | 21:40 | |
*** _sussi has joined #zope3-dev | 21:47 | |
*** HakTom has quit IRC | 21:47 | |
*** batlogg has joined #zope3-dev | 21:54 | |
*** mkerrin has quit IRC | 21:56 | |
*** oferw has quit IRC | 21:58 | |
*** batlogg_ has joined #zope3-dev | 22:17 | |
*** batlogg has quit IRC | 22:18 | |
*** _sussi has quit IRC | 22:25 | |
*** dunny has quit IRC | 22:48 | |
*** niemeyer has joined #zope3-dev | 22:49 | |
*** jfroche has joined #zope3-dev | 23:05 | |
*** whit has joined #zope3-dev | 23:05 | |
*** niemeyer has quit IRC | 23:09 | |
*** philiKON has joined #zope3-dev | 23:16 | |
*** opetznick has quit IRC | 23:22 | |
*** dobee_ has quit IRC | 23:37 | |
*** dobee has joined #zope3-dev | 23:41 | |
*** philiKON has quit IRC | 23:51 | |
*** jhauser has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!