IRC log of #zope3-dev for Thursday, 2006-12-21

*** faassen has joined #zope3-dev00:01
*** edgordon has quit IRC00:03
*** droogie has quit IRC00:06
*** gumpa has quit IRC00:10
*** faassen has quit IRC00:21
*** srichter has quit IRC00:23
*** srichter has joined #zope3-dev00:25
*** mjocius has joined #zope3-dev00:33
*** regebro has quit IRC00:36
*** natea is now known as natea|away00:38
*** batlogg_ has joined #zope3-dev00:42
*** batlogg has quit IRC00:43
*** whit has quit IRC00:55
*** whit has joined #zope3-dev00:57
*** rocky is now known as rocky|away01:19
*** batlogg_ has quit IRC01:26
*** andres has quit IRC01:27
*** grahal has quit IRC01:28
*** pelle_ has quit IRC01:28
*** rmarianski has quit IRC01:28
*** alecm has quit IRC01:35
*** whit has quit IRC01:36
*** alecm has joined #zope3-dev01:38
*** J1m has quit IRC01:48
*** mjocius has left #zope3-dev01:53
*** droogie_ has quit IRC02:11
*** niemeyer has quit IRC02:13
*** BjornT has quit IRC03:37
*** BjornT has joined #zope3-dev03:38
*** ChanServ sets mode: +o srichter04:01
*** whit has joined #zope3-dev04:06
*** whit has quit IRC04:42
*** alecm has quit IRC05:23
*** stub has joined #zope3-dev06:07
*** baijum has joined #zope3-dev07:37
*** ignas has quit IRC08:12
*** eins has joined #zope3-dev08:28
*** opetznick has joined #zope3-dev08:28
*** hedix has joined #zope3-dev08:31
*** alecm has joined #zope3-dev08:37
*** opetznick has quit IRC08:44
*** timte has joined #zope3-dev08:53
*** opetznick has joined #zope3-dev09:05
*** opetznick has quit IRC09:09
*** jfroche has joined #zope3-dev09:19
*** ghendi has joined #zope3-dev09:28
*** batlogg has joined #zope3-dev09:30
ghendihi09:33
ghendiwhom could I address some questions?09:33
*** alecm has quit IRC09:33
ghendiregarding Zope :)09:34
ghendiI'm new here, also a newbie :P just need little help09:36
*** philiKON_ has joined #zope3-dev09:38
*** opetznick has joined #zope3-dev09:43
*** philiKON has quit IRC09:45
*** jfroche has quit IRC09:45
*** pelle_ has joined #zope3-dev09:45
ghendiabout i18n, what is wrong here09:48
ghendisubject = _("You have received an ecard from ${exp_name}!", mapping={"exp_name":sentcard.exp_name})09:48
*** dobee has joined #zope3-dev09:48
romanofskimorjens09:49
ghendiresult is: subject = _("You have received an ecard from ${exp_name}!", mapping={"exp_name":sentcard.exp_name})09:49
ghendisorry, result is: u'You have received an ecard from ${exp_name}!'09:49
ghendiany idde why is not replacing exp_name?09:51
ghendiany idea?09:51
*** whit has joined #zope3-dev09: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) automatically10:04
philiKON_if not, you need to trigger interpolation10:04
philiKON_e.g. with zope.i18n.translate(msgid, context=request)10:04
febbhey philiKON  how are you ?10:04
philiKON_hey febb10:04
febbnice to see you online again. ! ..10:05
philiKON_same here10:08
febbgreat..   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
ghenditx philiKON!10:12
ghendiI'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_sure10:14
*** dobee has joined #zope3-dev10:14
philiKON_but then you need to translate manually10:15
philiKON_translation doesn't happen automagically (except in zpts)10:15
*** dobee has quit IRC10:15
febbwell...talk to you later.     take care.10:15
febblater all. !10:15
febb;)   ZZZzzz10:15
ghendiok, it works, tx!10:16
*** dobee has joined #zope3-dev10:16
*** kobold has joined #zope3-dev10:24
*** batlogg has quit IRC10:34
*** hdima has joined #zope3-dev10:38
*** jinty has joined #zope3-dev10:46
*** batlogg has joined #zope3-dev10:47
*** ignas has joined #zope3-dev10:48
*** HakTom has joined #zope3-dev10:50
*** whit has quit IRC10:59
*** opetznick has quit IRC10:59
*** opetznick has joined #zope3-dev11:31
*** henri_ has joined #zope3-dev11:32
*** henri_ has left #zope3-dev11:45
*** tgkuoZp has joined #zope3-dev11:50
*** tgkuoZp has left #zope3-dev11:54
*** dunny has quit IRC12:02
*** Mihaly has joined #zope3-dev12:07
MihalyHello there!12:07
*** pelle_ has quit IRC12:09
MihalyI 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-dev12:12
*** alienoid has joined #zope3-dev12:20
*** alienoid has left #zope3-dev12:20
timteMihaly: what happens if you try <span tal.content="python: list(context.keys())" />12:23
Mihalyi'll try12:23
Mihalyhmm, 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 way12:27
timtemaybe it's because iterating over OOBTreeItems is faster12:28
timteso list(OOBTreeItems) returns the actual list12:28
Mihalyahh, that makes sense12:29
Mihalystill, i should not receive an error12:31
timtephiliKON_: Found something on page 148. Do you want to know erratas or should I shut the f*** up?12:31
timteMihaly: I guess TAL is calling __call__ on objects to get back something it can display, on builtin types it doesn't need to12:31
timteMihaly: much guessing here, don't know the details  :)12:33
Mihalyno prob, thanks12:34
timteas the gurus are not always available here to answer questions, perhaps a few guesses is better than nothing  :)12:36
Mihalyabsolutely12:36
Mihaly:)12:36
*** grahal has joined #zope3-dev12:45
philiKON_timte: no, i'm very interested12:52
timtephiliKON_: ok, so page 148, time_to_cook schema field has an interesting description argument12:54
philiKON_yeah, it's a typesetting problem12:54
philiKON_it's correct, though12:54
philiKON_if you look at it, line 52 is split over two line12:54
philiKON_s12:55
timteah12:55
timtedoesn't the first line have to end with \ or + ?12:56
philiKON_no12:56
philiKON_x = "a" "b"12:56
philiKON_x = "ab"12:56
timteoh, cool12:56
philiKON_(it's the same)12:56
*** mgedmin has joined #zope3-dev13:22
*** grahal has quit IRC13:22
*** grahal has joined #zope3-dev13:23
*** rocky|away has quit IRC13:42
*** eins has quit IRC13:46
*** eins has joined #zope3-dev13:49
*** rocky has joined #zope3-dev13:55
*** BjornT has quit IRC14:00
*** BjornT has joined #zope3-dev14:00
*** HakTom has quit IRC14:11
*** EDVINAS_ has joined #zope3-dev14:16
*** hedix has quit IRC14:16
*** BjornT has quit IRC14:18
*** BjornT has joined #zope3-dev14:18
*** henri_ has joined #zope3-dev14:24
*** grahal is now known as grahalAFK14:24
*** alga has joined #zope3-dev14:25
*** siren99 has joined #zope3-dev14:36
*** rocky is now known as rocky|away14: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
ghendihi all15: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 sentcard15:00
ghendihow can I give a name to "sentcard" object?15:01
baijumghendi, http://wiki.zope.org/zope3/FAQ#how-to-give-unique-name-for-an-object-within-a-container15:02
ghendithank you15:03
*** mkerrin has joined #zope3-dev15:10
ghendihmm15:10
ghendiand for my example how can I apply this?15:11
ghendifrom zope.app.container.interfaces import INameChooser15:11
ghendiName will be assigned from 'create' or 'createAndAdd' methods, here is an eg:15:11
ghendidef 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] = anotherobj15:11
ghendi    return mycontainer15:11
*** sureshvv has joined #zope3-dev15:31
*** baijum has quit IRC15:37
mgedminghendi: are you using formlib's AddForm?15:47
*** henri_ has left #zope3-dev15:49
mgedminif so you may want to do self.context.contentName = data['somefield']15:49
mgedminI find that answer in the FAQ either misleading or not entirely correct15:49
ghendiyes I'm using AddForm15:57
ghendiit works15:59
ghenditx15:59
*** faassen has joined #zope3-dev15:59
*** b_52Free has quit IRC16:02
*** b_52Free has joined #zope3-dev16:02
*** stub has quit IRC16:03
*** J1m has joined #zope3-dev16:08
*** siren99 has quit IRC16:22
*** rocky|away is now known as rocky16:32
*** roym has joined #zope3-dev16:35
roymwhat is the best way to automate packing of a z3 zodb?16:36
*** EDVINAS_ has quit IRC16:51
*** eins has quit IRC16:56
*** gintas has joined #zope3-dev17:01
*** alecm has joined #zope3-dev17:03
*** ghendi has quit IRC17:09
*** pelle_ has quit IRC17:09
*** hdima has quit IRC17:11
*** jhauser has joined #zope3-dev17:19
*** philiKON_ has quit IRC17:22
*** kobold has left #zope3-dev17:23
roymTo 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 IRC17:32
*** alecm has quit IRC17:55
*** gintas has quit IRC18:01
*** opetznick has quit IRC18:26
rockyhm, 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-dev18:38
*** ChanServ sets mode: +o hazmat18:38
*** hazmat has quit IRC18:38
*** __mac__ has quit IRC18:45
*** grahalAFK is now known as grahal18:50
*** oferw has joined #zope3-dev18:57
*** alecm has joined #zope3-dev19:05
*** grahal has quit IRC19:08
*** grahal has joined #zope3-dev19:12
*** philiKON has joined #zope3-dev19:15
*** alga has quit IRC19:18
*** d2m has left #zope3-dev19:24
*** SmokeyD has joined #zope3-dev19:29
*** dobee has quit IRC19:30
*** philiKON has quit IRC19:40
*** mgedmin has quit IRC19:42
*** batlogg has quit IRC20:00
*** batlogg has joined #zope3-dev20:04
*** d2m has joined #zope3-dev20:05
*** pelle_ has joined #zope3-dev20:21
*** faassen has quit IRC20:33
J1mrocky, look at the adapter doctests.20:38
J1mroym, ZODB includes a zeopack script that you can use from a cron job.20:38
J1mAssuming that you are using ZEO, of course.20:39
*** harobed has joined #zope3-dev20:49
roymJ1m, thanks.20:58
*** roym has quit IRC20:58
*** febb has quit IRC21:00
*** febb has joined #zope3-dev21:01
*** dobee has joined #zope3-dev21:02
*** dobee_ has joined #zope3-dev21:04
*** dobee has quit IRC21:04
*** gumpa has joined #zope3-dev21:06
*** opetznick has joined #zope3-dev21:09
*** batlogg has quit IRC21:12
*** gumpa has quit IRC21:12
*** harobed has quit IRC21:14
*** harobed has joined #zope3-dev21:36
*** HakTom has joined #zope3-dev21:39
*** dunny has joined #zope3-dev21:40
*** _sussi has joined #zope3-dev21:47
*** HakTom has quit IRC21:47
*** batlogg has joined #zope3-dev21:54
*** mkerrin has quit IRC21:56
*** oferw has quit IRC21:58
*** batlogg_ has joined #zope3-dev22:17
*** batlogg has quit IRC22:18
*** _sussi has quit IRC22:25
*** dunny has quit IRC22:48
*** niemeyer has joined #zope3-dev22:49
*** jfroche has joined #zope3-dev23:05
*** whit has joined #zope3-dev23:05
*** niemeyer has quit IRC23:09
*** philiKON has joined #zope3-dev23:16
*** opetznick has quit IRC23:22
*** dobee_ has quit IRC23:37
*** dobee has joined #zope3-dev23:41
*** philiKON has quit IRC23:51
*** jhauser has quit IRC23:57

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!