Re: [Zope-dev] How long below the radar?
Rene Pijlman wrote: > On 10 Jul 2001 08:06:42 +0200, you wrote: > >| How about treating some of the most critically needed Zope modules > >| as a community project? > >I agree totally. > > So what do you think are the most needed Zope products? Form tools! :) Uhmm. Check. Feel free to join the community project at: http://www.zope.org/Members/faassen/Formulator I'll be giving a presentation to the community this friday in Berlin, too. Another thing I'm getting back involved in now is the whole Zope XML picture. I think good support for things such as XSLT, XPath, XLink and so on could add a lot of value for lots of people, and would do wonders for the enterprise buzzwordability of Zope, as well. e-commerce infrastructure is nice too, of course. Someone else can do that. :) What Zope also needs is a set of good clear APIs for component developers, and it needs something like the 'new religion' that's on a wiki somewhere; model/view/controller type architecture. If you think this can't be a community project as it's too advanced then I'll tell you that thought is the bane of community projects. Community projects can do anything! :) But as with any open source project, the community project will only succeed if there is one dedicated person (or a small group of dedicated people) that does all the work anyway. The opening of the Zope CVS for outside developers will help here too, hopefully. Regards, Martijn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [ZPatterns] HowTo: Make an Image/File a DataSkin ???
Steve Spicklemire wrote: > > Hi Ulrich, > > Hmm.. can you just call DataSkin.__init__(self, id) in the File's constructor? You might need to do it like this: DataSkin.inheritedAttribute('__init__')(self, id) -- Steve Alexander ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Traversal Barf
Casey Duncan wrote: > seb bacon wrote: > >>I've been getting a puzzling error. It's not reliably reproduceable. >>It occurs perhaps one time in four when I'm using Opera. At first, it >>appeared only to be related to Opera, but now I'm getting the same >>error in netscape. I can just hit refresh and it works again. >>There's no sign of anything like ConflictErrors or the like on the >>console. >> >>Has anyone seen this before? What could it be? >> >>< snip > >> >> File /usr/local/Zope/lib/python/DocumentTemplate/DT_Let.py, line 146, in render >>(Object: rootpath="absolute_url()") >> File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval >>(Object: absolute_url()) >>(Info: absolute_url) >> File , line 0, in ? >> File /usr/local/Zope/lib/python/OFS/Traversable.py, line 119, in absolute_url >>(Object: Traversable) >>KeyError: SERVER_URL >> >>Cheers, >> >>seb >> >> > > I have seen a similar traceback which was due to a bug in CopyPaste.py, > to which I have submitted a patch. It had to do with a lack of an > acquisition wrapper at an inopportune time. It looks as though > absolute_url() is being called without a proper wrapper around the > object it is begin called for. Looks to me like absolute_url() is being called when absolute_url(1) should be used. -- Steve Alexander ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [ZPatterns] HowTo: Make an Image/File a DataSkin ???
Hi Ulrich, Hmm.. can you just call DataSkin.__init__(self, id) in the File's constructor? -steve Ulrich Eck wrote: > > Hello .. sorry I bother you again with my ZPatterns > related Questions .. > > I just try it once again ;-) > > I have a Folder w/Customizer in that I want to store Objects > of type Image or File (CMFDefault.Image to be correct) in it. > > The inline doku of CMFDefault.File/Image says the following: > > -- > class File(OFS.Image.File > , PortalContent > , DefaultDublinCoreImpl > ): > """ > A Portal-managed File > """ > > # The order of base classes is very significant in this case. > # Image.File does not store it's id in it's 'id' attribute. > # Rather, it has an 'id' method which returns the contents of the > # instnace's __name__ attribute. Inheriting in the other order > # obscures this method, resulting in much pulling of hair and > # gnashing of teeth and fraying of nerves. Don't do it. > # > # Really. > # > # Note that if you use getId() to retrieve an object's ID, you will avoid > # this problem altogether. getId is the new way, accessing .id is > # deprecated. > > -- > > this is fairly true. I needed to make the DataSkin the "first" subclass > of File to ensure the datamanager-machinery will work (not_found v_dm) > > for example: > class File(DataSkin > , OFS.Image.File > , PortalContent > , DefaultDublinCoreImpl > ): > > this basically works fine except when I rename this object the different behaviour > of Dataskin (stores its id in self.id) and Image/File (stores its id in self.__name__ > and recommends the use of ob.getId() to get the id). > > Has anyone used a Image/File/ExtFile class for combining it with ZPatterns.DataSkin > and perhaps give me a hint ?? > > thanks > > Ulrich Eck > net-labs > > ___ > ZPatterns mailing list > [EMAIL PROTECTED] > http://www.eby-sarna.com/mailman/listinfo/zpatterns ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] HowTo: Make an Image/File a DataSkin ???
Hello .. sorry I bother you again with my ZPatterns related Questions .. I just try it once again ;-) I have a Folder w/Customizer in that I want to store Objects of type Image or File (CMFDefault.Image to be correct) in it. The inline doku of CMFDefault.File/Image says the following: -- class File(OFS.Image.File , PortalContent , DefaultDublinCoreImpl ): """ A Portal-managed File """ # The order of base classes is very significant in this case. # Image.File does not store it's id in it's 'id' attribute. # Rather, it has an 'id' method which returns the contents of the # instnace's __name__ attribute. Inheriting in the other order # obscures this method, resulting in much pulling of hair and # gnashing of teeth and fraying of nerves. Don't do it. # # Really. # # Note that if you use getId() to retrieve an object's ID, you will avoid # this problem altogether. getId is the new way, accessing .id is # deprecated. -- this is fairly true. I needed to make the DataSkin the "first" subclass of File to ensure the datamanager-machinery will work (not_found v_dm) for example: class File(DataSkin , OFS.Image.File , PortalContent , DefaultDublinCoreImpl ): this basically works fine except when I rename this object the different behaviour of Dataskin (stores its id in self.id) and Image/File (stores its id in self.__name__ and recommends the use of ob.getId() to get the id). Has anyone used a Image/File/ExtFile class for combining it with ZPatterns.DataSkin and perhaps give me a hint ?? thanks Ulrich Eck net-labs ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] SQL/ZPatterns examples posted to Zope.org
I've had several folks ask for some ZPatterns examples with SQL. I've *finally* gotten around to providing them. They're at: http://www.zope.org/Members/sspickle The first is a school attendance application 'skeleton' with the following description: An example of ZPatterns using SQL. Gadfly is the database so everyone can use it. There are a couple of novel aspects 1) a 'generic' object management UI that is acquired by all the Specialists and 2) levers to manage all the SQL and SkinScript. After you have the products and folder installed, you'll need to create the database tables (run createAllTables_html) and then add some data. There is a very crude admin UI for each Specialist that you can get to from the main 'view' page by clicking on the link for that Specialist. Follow the "object model":attendanceModel.gif to see how to hook things up. If you change any of the ZClass propertysheets you'll need to rerun the levers to create all the SQL queries and SkinScript. (You'll probably also need to drop/re-create the relevant database tables) The second is a school lunch application 'skeleton' which is 99% similar, except that it uses a filesystem base class for the 'Lunch' object, just to show how it can be done. Feedback most welcome! thanks, -steve ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Traversal Barf
seb bacon wrote: > > I've been getting a puzzling error. It's not reliably reproduceable. > It occurs perhaps one time in four when I'm using Opera. At first, it > appeared only to be related to Opera, but now I'm getting the same > error in netscape. I can just hit refresh and it works again. > There's no sign of anything like ConflictErrors or the like on the > console. > > Has anyone seen this before? What could it be? > > < snip > > > File /usr/local/Zope/lib/python/DocumentTemplate/DT_Let.py, line 146, in render > (Object: rootpath="absolute_url()") > File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval > (Object: absolute_url()) > (Info: absolute_url) > File , line 0, in ? > File /usr/local/Zope/lib/python/OFS/Traversable.py, line 119, in absolute_url > (Object: Traversable) > KeyError: SERVER_URL > > Cheers, > > seb > I have seen a similar traceback which was due to a bug in CopyPaste.py, to which I have submitted a patch. It had to do with a lack of an acquisition wrapper at an inopportune time. It looks as though absolute_url() is being called without a proper wrapper around the object it is begin called for. What object is it begin called for? -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `--> ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope core dump
* Evan Simpson <[EMAIL PROTECTED]> [010709 21:12]: > seb bacon wrote: > > > I just tried to restart zope and got a core dump. The backtrace > > (pasted below) indicated a problem with the binascii module, and sure > > enough, trying to import it reproduced the segfault. I reinstalled > > python and it all worked again. > > Reinstalling Python to fix it?? That sounds like filesystem (or disk) > corruption to me. Unless you've installed something between Zope > startups that could conceivably have overwritten the module? That's what I thought. Thing is, it's on a RAID0+1 system with new, clean disks, and a current, stable kernel. Still, that's the only logical explanation really. I was just hoping you wouldn't say that ;-) seb ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZODBCA for Python 2.1
Since the source of ZODBCA is not available could someone in DC compile this for Python 2.1 / Zope 2.4? Or make the source available? Pretty please :) http://www.zope.org/Products/DA/ZODBCDA Thanks. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Traversal Barf
I've been getting a puzzling error. It's not reliably reproduceable. It occurs perhaps one time in four when I'm using Opera. At first, it appeared only to be related to Opera, but now I'm getting the same error in netscape. I can just hit refresh and it works again. There's no sign of anything like ConflictErrors or the like on the console. Has anyone seen this before? What could it be? < snip > File /usr/local/Zope/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: rootpath="absolute_url()") File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: absolute_url()) (Info: absolute_url) File , line 0, in ? File /usr/local/Zope/lib/python/OFS/Traversable.py, line 119, in absolute_url (Object: Traversable) KeyError: SERVER_URL Cheers, seb ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How long below the radar?
On 10 Jul 2001 08:06:42 +0200, you wrote: >| How about treating some of the most critically needed Zope modules >| as a community project? >I agree totally. So what do you think are the most needed Zope products? Regards, René Pijlman ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How long below the radar?
[[EMAIL PROTECTED]] | Other than: http://dev.zope.org/Resources/ZopeDirections.html? Well, it is from February. And besides, it describes what we have/semi-have now, and not what is planned for the future (for example, where do DC think Zope is in three, four or five years?) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How long below the radar?
> | I would like to see a Roadmap for ZOPE. > > Aye! Other than: http://dev.zope.org/Resources/ZopeDirections.html? -- Andy McKay ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Python Script bug?
Chris Withers wrote: > > Hi, > > The following code: > > objects = map(lambda b: b.getObject,brains) try objects = map(lambda b: b.getObject(),brains) --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Python Script bug?
Hi, The following code: objects = map(lambda b: b.getObject,brains) Results in: Error type: Unauthorized Error value: __len__ File E:\Zope\current\Products\CMFCore\FSPythonScript.py, line 187, in _exec (Object: index_html_postings) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 5, in index_html_postings File E:\Zope\2379B4~1.2\lib\python\Products\PythonScripts\Guarded.py, line 204, in __careful_map__ (Object: ) File E:\Zope\2379B4~1.2\lib\python\Products\PythonScripts\Guarded.py, line 273, in __getattr__ File E:\Zope\2379B4~1.2\lib\python\Products\PythonScripts\Guarded.py, line 152, in __careful_getattr__ ...and yet the following code: objects = [] for brain in brains: objects.append(brain.getObject()) ...works fine. This is on Zope 2.3.2, is it a bug? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How long below the radar?
[alan runyan] | I believe that before ZOPE can truely take off it will need a | miniVend like solution to get the PHP/CF/ASPers to ZOPE. What is "miniVend"? | I would like to see a Roadmap for ZOPE. Aye! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How long below the radar?
I couldnt resist jumping in. I have been playing w/ ZOPE and BEA Weblogic for over two years. I would say I know more about Weblogic than ZOPE, but I am more productive w/ ZOPE. thus my 'love' for ZOPE. I believe that before ZOPE can truely take off it will need a miniVend like solution to get the PHP/CF/ASPers to ZOPE. Why? Because everyone needs this functionality - Now. In fact, I want it, but not enough to put the time into either of the two existing solutions. When you come to Zope, its almost impossible to build something like this the first day, even if you are somewhat fluent with Python. Why? Tools/Experience from other systems are not out-of-the-box. Sessions _are_ fundamental in keeping state in a shopping cart application. You can not easily embed logic w/ presentation (please dont flame me.) -- all other systems do it. ZOPE is the only one that *forces* you to be correct. people dont want correct, they want it to work, Now. After using resin, http://www.caucho.com/ for over a year, the dynamically loaded classes, form based authentication (i hear this at least 4-5 times a week on #zope), jsp, easy configuration xml file (?environment variable explosion?), sessions, and clear API documentation. I'm not saying make ZOPE - servlet/jsp like I'm just pointing out what I find **incredibly** useful for large scale ecommerce projects, http://www.skyauction.com/ Redhat's solution is a evolved minivend - http://interchange.redhat.com/cgi-bin/ic/index.html I was on #zope for the talk about creating pay modules for ZOPE. I am a fan of this idea. I think having a 100% Zope Certified Product could lead to more consistent configurations/out-of-the-box products -- how many products besides the DC released ones would you give a 100% Zope Certified Product label to? I havent seen that many at all. With some work they could get it, but very few out-of-the-box. The last thing people want is to have to download 3 different products to get another product working. It would be different if these dependancies were on products like PageTemplates in that they are 100% Zope Certified. Seeing that there are over 300 products, its about time the 'truely drop-in products' are seperated from the almost drop-in workable products. I would like to see a Roadmap for ZOPE. A option to purchase 100% Zope Certified Products (I dont believe this was in the survey sent out to the community) that Work Now. I would like to have a clearer way of development path, a Best Practices. ZEO is a huge secret, if you can get the average ASP/PHPer to be able to use ZEO and get interactive debugging working in the a few hours (or out of the box!! ;) -- you will see a new tune sung about 'ease of use'. I think with the right tools coming out of the box w/ ZOPE in the future it will be gain even more popularity. Preserving quality with a 100% Zope Certified label will give people confidance in the testing/reliability of their Products. And with the option of purchasing modules maybe some people can make some(quite a few?) bucks on the side ;). cheers, ~runyaga ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )