Re: [Zope] catalog aware not working.. help
On 3/20/07, Allen Huang <[EMAIL PROTECTED]> wrote: I made a pyhon product with catalogaware as one of my base class but my zcatalog named 'catalog' doesn't automatically catalog when I add a product item. what could be a problem? Please help this is part of my code that include catalogawareness: class ShpTypePointClass(Item, Persistent, Implicit, CatalogAware): iirc, CatalogAware has to first like so: class ShpTypePointClass( CatalogAware, Item, Persistent, Implicit): hth #print "ShpTypePointClass" id='ShpTypePoint' meta_type='ShpTypePoint' manage_options = ( { 'label':'Properties','action':'manage_editShpTypePoint' }, ) + Item.manage_options #_properties=( #{ 'id':'title', 'type':'string', 'mode':'w'}, #{ 'id':'x', 'type':'string', 'mode':'w'}, #{ 'id':'y', 'type':'string', 'mode':'w'} #) def __init__(self, id, x, y, dbfInfo): #print 'initializing' self.id = id self.x = x self.y = y self.dbfInfo = dbfInfo self.reindex_object() def printPoint(self): #print "print Point" return " printPoint Method ID:" + self.id + " -- ( " + self.x + ", " + self.y + " )" def edit(self, x, y, REQUEST=None): """Edit the Point""" #print "edit" self.x = x self.y = y self.reindex_object() if REQUEST is not None: return self.manage_editShpTypePoint(self, REQUEST) ##Web Methods index_html = HTMLFile('DTML/index_html', globals()) manage_editShpTypePoint = HTMLFile('DTML/manage_editShpTypePoint', globals()) InitializeClass(ShpTypePointClass) We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- http://myzope.kedai.com.my - my-zope org ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Addressbook Product
On Tuesday 20 March 2007 11:39, Frank Drews wrote: > Hi, > > I have realy searched for a nice addressbook product for a couple two > days now. I dont find anything suitable. I need it for a collaboration > plattform running on zope, cmf. I like zope very much and am looking for > a shared addressbook. > Anybody any experiences or suggestions? > What would be realy great, but no must-have feature for me would be an > integration of the user-data and some permission features to set (who > can view/write which addresses).. > > Imho a shared addressbook (both for userdata and external contacts) is > the most important missing feature to make zope a very powerfull > groupware-portal (forums, mails, calender, documents, workflow, wiki, > chat ... all already very nice). What's wrong with this? http://plone.org/products/myaddressbook Anyway, while CPS was not turned to Java it had a nice basic addressbook. Ithink you could also consider setting up an LDAP directory and then put any LDAP backend to "query" it. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Who's using Quanta+ / Kdevelop for ZPT?
Hi, I just wondered if there was some Quanta+/Kdevelop users in here. I am looking for their way to handle ZPTs. I know it's pretty close to XML, but any tip would interest me. Thank you! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] I keep getting validate error.. why?
Allen Huang wrote at 2007-3-20 05:39 -0700: >I keep getting this error, but the same code work on another zope server and I >didn't use any key or attribute named 'validate'. What is the cause of this? > >Time2007/03/20 17:38:03.726 GMT+8 >User Name (User Id)admin (admin) >Request URLhttp://localhost/WEBGIS/test1 >Exception TypeKeyError >Exception Value'validate' > >Traceback (innermost last): >Module ZPublisher.Publish, line 115, in publish >Module ZPublisher.mapply, line 88, in mapply >Module ZPublisher.Publish, line 41, in call_object >Module OFS.DTMLMethod, line 153, in __call__ > >URL: http://localhost/WEBGIS/test1/manage_main >Physical Path:/WEBGIS/test1 >KeyError: 'validate' I remember that I have seen a similar report and that I helped someone to find a workaround for the problem (although I did not understand how this problem could arise). Please search the mailing list archive (via your favorite search engine) to find the thread (and see whether you can use the same workaround). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] I keep getting validate error.. why?
- Original Message - From: "Allen Huang" <[EMAIL PROTECTED]> Subject: [Zope] I keep getting validate error.. why? I keep getting this error, but the same code work on another zope server and I didn't use any key or attribute named 'validate'. What is the cause of this? Time2007/03/20 17:38:03.726 GMT+8 User Name (User Id)admin (admin) Request URLhttp://localhost/WEBGIS/test1 Exception TypeKeyError Exception Value'validate' Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module OFS.DTMLMethod, line 153, in __call__ URL: http://localhost/WEBGIS/test1/manage_main Physical Path:/WEBGIS/test1 KeyError: 'validate' Try googling for KeyError: 'validate' (there are a couple of posts that deal with this error as it relates to ZCatalogs). If your dtml method 'test1' is not doing anything with ZCatalogs, then post the source. Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] I keep getting validate error.. why?
I keep getting this error, but the same code work on another zope server and I didn't use any key or attribute named 'validate'. What is the cause of this? Time2007/03/20 17:38:03.726 GMT+8 User Name (User Id)admin (admin) Request URLhttp://localhost/WEBGIS/test1 Exception TypeKeyError Exception Value'validate' Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module OFS.DTMLMethod, line 153, in __call__ URL: http://localhost/WEBGIS/test1/manage_main Physical Path:/WEBGIS/test1 KeyError: 'validate' TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] catalog aware not working.. help
- Original Message - From: "Allen Huang" <[EMAIL PROTECTED]> To: "Zope" Sent: Tuesday, March 20, 2007 3:09 AM Subject: [Zope] catalog aware not working.. help I made a pyhon product with catalogaware as one of my base class but my zcatalog named 'catalog' doesn't automatically catalog when I add a product item. what could be a problem? I am not sure if this is your problem, but I have a vague recollection that the ZCatalog needs to be named 'Catalog' (initial capital). Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Addressbook Product
Hi, I have realy searched for a nice addressbook product for a couple two days now. I dont find anything suitable. I need it for a collaboration plattform running on zope, cmf. I like zope very much and am looking for a shared addressbook. Anybody any experiences or suggestions? What would be realy great, but no must-have feature for me would be an integration of the user-data and some permission features to set (who can view/write which addresses).. Imho a shared addressbook (both for userdata and external contacts) is the most important missing feature to make zope a very powerfull groupware-portal (forums, mails, calender, documents, workflow, wiki, chat ... all already very nice). Thank you very much Frank [EMAIL PROTECTED] schrieb: Send Zope mailing list submissions to zope@zope.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.zope.org/mailman/listinfo/zope or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Zope digest..." Today's Topics: 1. Re: Cannot Import Base has_attr...Again! (Jens Vagelpohl) 2. Re: How do people work with html-designers? (Laurence Rowe) 3. losing random session data (Norbert Marrale) 4. Re: losing random session data (Andreas Jung) 5. Re: losing random session data (Maciej Wisniowski) 6. Re: losing random session data (Tres Seaver) 7. What is the best way to debug a Zope 2.62 application. (Mark, Jonathan (Integic)) 8. Re: What is the best way to debug a Zope 2.62 application. (robert rottermann) 9. Re: What is the best way to debug a Zope 2.62 application. ( Eric Br?hault ) 10. email validator script (javi lopez) 11. Re: email validator script (Andreas Jung) 12. file upload ([EMAIL PROTECTED]) 13. Re: file upload (Jonathan) 14. Re: file upload ([EMAIL PROTECTED]) 15. Re: file upload (Jonathan) -- Message: 1 Date: Sun, 18 Mar 2007 17:01:59 +0100 From: Jens Vagelpohl <[EMAIL PROTECTED]> Subject: Re: [Zope] Cannot Import Base has_attr...Again! To: zope user list Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18 Mar 2007, at 16:45, [EMAIL PROTECTED] wrote: --On 17. März 2007 15:16:31 -0400 [EMAIL PROTECTED] wrote: I had this problem on another server I recently built...and it went away all by itself! I'm now rebuilding my home server, and it's cropped up again. Last time, Maciej Wisniowski suggested I go to a zopectl prompt and type in "import Products.CMFPlone", but apparently that doesn't work on Zope 2.7.8/Plone 2.1.4. Here is the traceback. Please advise. TIA, Tony Consult the plone-users list for Plone-related questions. I did that last time and no one addressed the issue, so I came here. Would you care to address the issue? The fact that no one helped on the Plone list does not invalidate Andreas' assertion that this is a Plone issue and it belongs on the Plone list. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFF/WJ3RAx5nvEhZLIRAuWpAJ9GeeP3YoAGkbWLugO1xzjyxgomSgCdHZ58 vbdZ1mjfZn9827vjr1h6Z6E= =t3JN -END PGP SIGNATURE- -- Message: 2 Date: Sun, 18 Mar 2007 19:29:34 + From: Laurence Rowe <[EMAIL PROTECTED]> Subject: [Zope] Re: How do people work with html-designers? To: zope@zope.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Gaute Amundsen wrote: I have been meaning to ask this for a while.. How do people set up the zope development process and servers to work well with web-designers who use wysiwyg editors like dreamweaver? Take a look at deliverance http://openplans.org/projects/deliverance The other option is to find someone with very good CSS skills who can design without adding changing the underlying html. In my experience that has been fairly rare though. Laurence -- Message: 3 Date: Sun, 18 Mar 2007 16:22:29 -0400 From: Norbert Marrale <[EMAIL PROTECTED]> Subject: [Zope] losing random session data To: zope@zope.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed In Zope 2.7.5-final, python 2.3.5, freebsd6 with Transient Object Container settings: Data timeout: 20 Timeout resolution: 20 Maximum subobjects: 1000 and a python script that does this: req = context.REQUEST prev_order=(req.SESSION.get('order')) if prev_order == None: order=[] else: order = prev_order order.append(req.form) req.SESSION.set('order',order) my data ends up look