[Zope] Need prof. tool for conversion html-pdf
Greetings to all, my company is searching for a tool capable of producing good quality pdf's from page templates or documents on the fly. This tool should somehow integrate with Zope. It could be Zope/Plone product, python script or even shell script invoked by Zope. It can be commercial (and probably will be). I've searched the net, but found nothing that would met this requirements: * professional css conversion: pdf should look almost exactly like source document, all css properties should be handled * it should omit silently html elements, that are not supported (e.g. flash objects, applets) without crash or error * links should be active (clickable) in pdf * conversion of html forms to pdf forms would be nice to see * conversion from flash objects or java applets to static images (somehow) would be nice to see too * even putting flash objects into pdf was considered (i'm suspecting latest pdf format handles build-in flash, since adobe bought macromedia some time ago) Every help that i can get would be appreciated. -- ___ 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] Re: Need prof. tool for conversion html-pdf
Tomasz Bielecki wrote: Greetings to all, my company is searching for a tool capable of producing good quality pdf's from page templates or documents on the fly. This tool should somehow integrate with Zope. It could be Zope/Plone product, python script or even shell script invoked by Zope. It can be commercial (and probably will be). I've searched the net, but found nothing that would met this requirements: * professional css conversion: pdf should look almost exactly like source document, all css properties should be handled * it should omit silently html elements, that are not supported (e.g. flash objects, applets) without crash or error * links should be active (clickable) in pdf * conversion of html forms to pdf forms would be nice to see * conversion from flash objects or java applets to static images (somehow) would be nice to see too * even putting flash objects into pdf was considered (i'm suspecting latest pdf format handles build-in flash, since adobe bought macromedia some time ago) Every help that i can get would be appreciated. With all those requirements I believe that every help you can get will be expensive ;-) Many of your wishes are huge tasks. A project like that could easily run into hundreds of hours. Building a custom tool using reportlab is probably the most feasible approach. But most likely you should forget about Zope Plone compatibility and just find a tool that can convert all html to pdf, and find one that can be automated. Then make sure that your Plone output can be converted via that tool. This turned up many interesting tools: http://www.google.dk/search?q=html+pdf+conversion -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 ___ 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] ExternalMethod for exporting un-pickled Office files to the filesystem etc
HiJust wondering if anyone has written or attempted to write a script which would read through a site built using Zope and write all attached/uploaded files (Word, PDF, Excel) etc to a filesystem location in an un-pickled format. Therefore the files would be usable by their native application and be accessible outside of Zope. The business logic behind this is to be able to create, say once a day at night, a copy of all digital business assets for extra back-up and recovery purposes in case of disaster. Also this would be good for migration purposes if required. If not, how long would it take to create such a script? I could probably source a sponsor for it. I realise that it's best to do this at the application level and at the moment this would be through Plone. I've demoed all the Plone external storage products and also checked out DirectoryStorage but all these store pickled files etc. Thanks-- michael ___ 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] ExternalMethod for exporting un-pickled Office files to the filesystem etc
michael nt milne schrieb: Hi Just wondering if anyone has written or attempted to write a script which would read through a site built using Zope and write all attached/uploaded files (Word, PDF, Excel) etc to a filesystem location in an un-pickled format. Therefore the files would be usable by their native application and be accessible outside of Zope. The business logic behind this is to be able to create, say once a day at night, a copy of all digital business assets for extra back-up and recovery purposes in case of disaster. Also this would be good for migration purposes if required. If not, how long would it take to create such a script? I could probably source a sponsor for it. I realise that it's best to do this at the application level and at the moment this would be through Plone. I've demoed all the Plone external storage products and also checked out DirectoryStorage but all these store pickled files etc. --- snip -- import os import sys try: targetdir=sys.argv[1] except IndexError: print usage: zopectl run %s target dirrectory % sys.argv[0] def filedump(resulttuple,basedir): pathname,fileobject=resulttuple print dumping %s (%d Bytes) % (fileobject.getId(),fileobject.size) o=open(os.path.join(basedir,pathname.replace('/','_')+fileobject.getId()),wb) o.write(str(fileobject.data)) for res in app.ZopeFind(app,obj_metatypes=['File']) filedump(res,targetdir) - snip --- and run this over ZEO via zopectl run thescript.py somewhere/to/targetdir There are possibly many improvements (creating subdirectories, fixing extensions and so on) Regards Tino Wildenhain ___ 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] ExternalMethod for exporting un-pickled Office files to the filesystem etc
Cheers, thanks a lot for that. I'll give it a go. I still may be interested in sponsoring a version with the improvements you mention etc and possibly more. Would that code be compatible for Unix and also for Windows NTFS? ThanksOn 6/22/06, Tino Wildenhain [EMAIL PROTECTED] wrote: michael nt milne schrieb: Hi Just wondering if anyone has written or attempted to write a script which would read through a site built using Zope and write all attached/uploaded files (Word, PDF, Excel) etc to a filesystem location in an un-pickled format. Therefore the files would be usable by their native application and be accessible outside of Zope. The business logic behind this is to be able to create, say once a day at night, a copy of all digital business assets for extra back-up and recovery purposes in case of disaster. Also this would be good for migration purposes if required. If not, how long would it take to create such a script? I could probably source a sponsor for it. I realise that it's best to do this at the application level and at the moment this would be through Plone. I've demoed all the Plone external storage products and also checked out DirectoryStorage but all these store pickled files etc.--- snip --import osimport systry: targetdir=sys.argv[1]except IndexError: print usage: zopectl run %s target dirrectory % sys.argv[0]def filedump(resulttuple,basedir): pathname,fileobject=resulttuple print dumping %s (%d Bytes) % (fileobject.getId(),fileobject.size) o=open(os.path.join(basedir,pathname.replace ('/','_')+fileobject.getId()),wb) o.write(str(fileobject.data))for res in app.ZopeFind(app,obj_metatypes=['File']) filedump(res,targetdir)- snip --- and run this over ZEO via zopectl run thescript.py somewhere/to/targetdirThere are possibly many improvements (creating subdirectories, fixing extensionsand so on)RegardsTino Wildenhain -- michael ___ 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] ExternalMethod for exporting un-pickled Office files to the filesystem etc
michael nt milne schrieb: Cheers, thanks a lot for that. I'll give it a go. I still may be interested in sponsoring a version with the improvements you mention etc and possibly more. Would that code be compatible for Unix and also for Windows NTFS? at the moment, yes ( using os.path.join() for that) directory creating isnt that hard either, its just some recursion and checking... Regards TIno Wildenhain ___ 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] ExternalMethod for exporting un-pickled Office files tothe filesystem etc
How we can read the plone file File from zodb in one file object. Regards Krishna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tino Wildenhain Sent: Thursday, June 22, 2006 5:04 PM To: michael nt milne Cc: zope list user Subject: Re: [Zope] ExternalMethod for exporting un-pickled Office files tothe filesystem etc michael nt milne schrieb: Cheers, thanks a lot for that. I'll give it a go. I still may be interested in sponsoring a version with the improvements you mention etc and possibly more. Would that code be compatible for Unix and also for Windows NTFS? at the moment, yes ( using os.path.join() for that) directory creating isnt that hard either, its just some recursion and checking... Regards TIno Wildenhain ___ 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 ) - Disclaimer - This message(including attachment if any)is confidential and may be privileged.Before opening attachments please check them for viruses and defects.MindTree Consulting Private Limited (MindTree)will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. -___ 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] ExternalMethod for exporting un-pickled Office files tothe filesystem etc
Krishna Shukla schrieb: How we can read the plone file File from zodb in one file object. Regards Krishna should work similar - but check the API docs. The meta-type is probably a bit different so you need to extend it in the Zopefind() call. Also for ultra performance, Zope file objects usually dont wear an opaque string with data but linked PData elements which could be read block by block instead of the simple str() in my implemention. Regards Tino Wildenhain ___ 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] ExternalMethod for exporting un-pickled Office files tothe filesyste
Tino Wildenhain wrote: Krishna Shukla schrieb: How we can read the plone file File from zodb in one file object. Regards Krishna should work similar - but check the API docs. The meta-type is probably a bit different so you need to extend it in the Zopefind() call. Also for ultra performance, Zope file objects usually dont wear an opaque string with data but linked PData elements which could be read block by block instead of the simple str() in my implemention. Look at whatever ATFile specifies; I suspect it's something like getFile(). There's an obvious solution we're missing here by the way: use WebDAV or FTP :) Martin -- View this message in context: http://www.nabble.com/RE%3A-ExternalMethod-for-exporting-un-pickled-Office-files-tothe-filesystem-etc-t1829611.html#a4992271 Sent from the Zope - General forum at Nabble.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 )
[Zope] ZWiki with Zope 2.7, OS X Server 10.4.x
I installed ZWiki by unpacking and putting the folder into my Zope Products directory. I restarted Zope and ZWiki shows up as a valid product. However, when I actually try to add a ZWiki from the select type to add... pulldown menu, I get this error: Time2006/06/22 09:05:41.911 GMT-4 User Name (User Id) Anonymous User (None) Request URL https://myserver.com/zope/manage_addProduct/ZWiki/manage_addwiki Exception Type NotFound Exception Value https://myserver.com/zope/manage_addProduct/ZWiki/manage_addwiki Traceback (innermost last): Module ZPublisher.Publish, line 91, in publish Module ZPublisher.BaseRequest, line 335, in traverse Module ZPublisher.HTTPResponse, line 630, in notFoundError . . . (The rest of the error shows HTML tags and the REQUEST object.) I didn't find anything on zwiki.org about this issue, and I tried Googling with no success. If you have experienced this issue, would you please tell me how you fixed it? Thanks! - B __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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] ZWiki with Zope 2.7, OS X Server 10.4.x
En/na baiewola ha escrit: I didn't find anything on zwiki.org about this issue, and I tried Googling with no success. If you have experienced this issue, would you please tell me how you fixed it? http://zwiki.org/1269AddingA054ZwikiThroughTheZMIFailsBecauseOfACaseMismatch HTH ___ 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] Problem with constructTransientObjectContainer - Resolved
Hi Jonathan user once, then it is discarded. In order to eliminate many writes to the zodb (disk), I have decided to put the customized images into a temporary folder (RAM). Can't you just put the images in the TOC and let them expire by themselves? -- jean ___ 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] Problem with constructTransientObjectContainer - Resolved
- Original Message - From: Jean Jordaan [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, June 22, 2006 11:32 AM Subject: Re: [Zope] Problem with constructTransientObjectContainer - Resolved Hi Jonathan user once, then it is discarded. In order to eliminate many writes to the zodb (disk), I have decided to put the customized images into a temporary folder (RAM). Can't you just put the images in the TOC and let them expire by themselves? I need to be able to allow client browsers to access the images via an html img src=... tag. I didn't know how to construct a url to get at the image objects within a TOC (can this be done?) Thanks, 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] ANN (Screencast): Installing Zope at WebFaction
Hello everyone, WebFaction (formerly Python-Hosting.com) have just released a screencast demo of their control panel. The 6 minute demo shows how you can setup a Rails, WordPress, Django and TurboGears application in a few clicks, and then mount these applications on various domain(s)/URL(s). The one-click installer already supports all major tools, including Rails, WordPress, Djano, TurboGears, Zope, Plone, Trac and Subversion, but also lightweight tools such as static HTML, CGI or PHP. Even though Zope itself is not shown in the demo, it is supported in the one-click installer so its installation works just like the other applications. We already hosts hundreds of Zope and Plone sites. The demo is available at: http://blog.webfaction.com/control-panel-demo Remi. http://www.webfaction.com - Hosting for an agile web PS: WebFaction offers free Trac/Subversion hosting for all open-source python projects. We already host more than 200 of them. ___ 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] Re: ExternalMethod for exporting un-pickled Office files tothe filesyste
Of course-I hadn't thought of that. A small WebDav or Ftp script could be written to do that in a batch. I guess possibly not ultimately the most elegant as it would involve the server connecting to itself using a remote connection to transfer files internally? Still worth a try. Would be nice to set up an option to do this from within the interface with config settings. I'll spec something out with a view to creating a product. On 6/22/06, Martin Aspeli [EMAIL PROTECTED] wrote: Tino Wildenhain wrote: Krishna Shukla schrieb: How we can read the plone file File from zodb in one file object. Regards Krishna should work similar - but check the API docs. The meta-type is probably a bit different so you need to extend it in the Zopefind() call. Also for ultra performance, Zope file objects usually dont wear an opaque string with data but linked PData elements which could be read block by block instead of the simple str() in my implemention. Look at whatever ATFile specifies; I suspect it's something like getFile(). There's an obvious solution we're missing here by the way: use WebDAV or FTP :) Martin -- View this message in context: http://www.nabble.com/RE%3A-ExternalMethod-for-exporting-un-pickled-Office-files-tothe-filesystem-etc-t1829611.html#a4992271 Sent from the Zope - General forum at Nabble.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 ) -- michael ___ 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-Checkins] SVN: Zope/branches/2.10/ - updated deprecation warnings
Log message for revision 68788: - updated deprecation warnings Changed: U Zope/branches/2.10/doc/CHANGES.txt U Zope/branches/2.10/lib/python/OFS/Application.py -=- Modified: Zope/branches/2.10/doc/CHANGES.txt === --- Zope/branches/2.10/doc/CHANGES.txt 2006-06-22 12:59:55 UTC (rev 68787) +++ Zope/branches/2.10/doc/CHANGES.txt 2006-06-22 13:03:27 UTC (rev 68788) @@ -18,6 +18,10 @@ Bugs Fixed + - OFS Application: Updated deprecation warnings. +Support for '__ac_permissions__' and 'meta_types' will be removed in +Zope 2.11, 'methods' support might remain longer. + - Collector #2136: Map ResourceLockedError to the correct response code. - Collector #2016: DemoStorage couldn't wrap base storages without Modified: Zope/branches/2.10/lib/python/OFS/Application.py === --- Zope/branches/2.10/lib/python/OFS/Application.py2006-06-22 12:59:55 UTC (rev 68787) +++ Zope/branches/2.10/lib/python/OFS/Application.py2006-06-22 13:03:27 UTC (rev 68788) @@ -795,7 +795,7 @@ warn('__init__.py of %s has a long deprecated ' '\'__ac_permissions__\' attribute. ' '\'__ac_permissions__\' will be ignored by ' - 'install_product in Zope 2.10. Please use registerClass ' + 'install_product in Zope 2.11. Please use registerClass ' 'instead.' % product.__name__, DeprecationWarning) for p in pgetattr(product, '__ac_permissions__', ()): @@ -810,7 +810,7 @@ if pgetattr(product, 'meta_types', None) is not None: warn('__init__.py of %s has a long deprecated \'meta_types\' ' 'attribute. \'meta_types\' will be ignored by ' - 'install_product in Zope 2.10. Please use registerClass ' + 'install_product in Zope 2.11. Please use registerClass ' 'instead.' % product.__name__, DeprecationWarning) for meta_type in pgetattr(product, 'meta_types', ()): @@ -825,10 +825,12 @@ meta_types.append(meta_type) if pgetattr(product, 'methods', None) is not None: -warn('__init__.py of %s has a long deprecated \'methods\' ' - 'attribute. \'methods\' will be ignored by ' - 'install_product in Zope 2.10. Please use registerClass ' - 'instead.' % product.__name__, +warn(__init__.py of %s has a long deprecated 'methods' + attribute. 'methods' support might be removed in Zope + 2.11 or a later feature release. Please use the + 'legacy' argument of registerClass instead if the + methods are constructors. Or refactor the product + using adapters. % product.__name__, DeprecationWarning) for name,method in pgetattr( product, 'methods', {}).items(): ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
Re: [Zope-dev] Re: default view
Dieter Maurer wrote: Florent Guillaume wrote at 2006-6-18 02:05 +0200: ... if hasattr(object,'__bobo_traverse__'): subobject=object.__bobo_traverse__(request, name) If you are working on it, then you should implement a means that __bobo_traverse__ can tell the caller that it should use the normal default. This feature makes lots of __bobo_traverse__ implementations much saner. A prominent example is the Archetypes' one. In our private Zope version, I have used an exception (UseTraversalDefault) for this purpose. I think that __bobo_traverse__ can raise AttributeError currently to indicate that it has failed to look up an attribute and that traversal should try other options. Apart from being a more explicit spelling, what advantage would UseTraversalDefault have? Philipp ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: default view
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Dieter Maurer wrote: Florent Guillaume wrote at 2006-6-18 02:05 +0200: ... if hasattr(object,'__bobo_traverse__'): subobject=object.__bobo_traverse__(request, name) If you are working on it, then you should implement a means that __bobo_traverse__ can tell the caller that it should use the normal default. This feature makes lots of __bobo_traverse__ implementations much saner. A prominent example is the Archetypes' one. In our private Zope version, I have used an exception (UseTraversalDefault) for this purpose. I think that __bobo_traverse__ can raise AttributeError currently to indicate that it has failed to look up an attribute and that traversal should try other options. Apart from being a more explicit spelling, what advantage would UseTraversalDefault have? The contract for '__bobo_traverse__' is actually insane on this point, becuase it has to serve two masters: - In publishing traversal, an AttributeErrror raised from '__bobo_traverse__' has the semantics you describe. - In '{un,}restrictedTraverse', an AtttributeError causes the whole traversal process to abort, returning the 'default' value (if passed), or raising. Fixing this incompatibility without breaking applications which may be unknowingling dependent on it is going to be hard. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEmpB2+gerLs4ltQ4RAtc9AKDIxupDiJI57PA2+Vsx/HNDHBlMWgCgosXm BCH//4dbeBOKt/C6ESsEvG0= =4DH2 -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Proposal: Scrap zpkg for Zope2 releases
Tres Seaver wrote: I believe that the extra flexibility which zpkg is intended to provide (dependency-based subset distributions, primarily) would be better served by moving Zope to use eggs, and that we should thus retire zpkg as the means for building Zope2 releases. +1 ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Proposal: Scrap zpkg for Zope2 releases
--On 22. Juni 2006 11:01:21 -0400 Fred Drake [EMAIL PROTECTED] wrote: On 6/22/06, Tres Seaver [EMAIL PROTECTED] wrote: I believe that the extra flexibility which zpkg is intended to provide (dependency-based subset distributions, primarily) would be better served by moving Zope to use eggs, and that we should thus retire zpkg as the means for building Zope2 releases. Instead, we should recreate the version of the 'inst' stuff removed in the 2.9 beta cycle, and update it for any changes to the tree made since then. +1 +2 from the release manager side. zpkg has always been a mystery to me. Dealing with zpkg issues has always been like driving with 100mph through fog. Andreas pgpQWLqtwrVr3.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Proposal: Scrap zpkg for Zope2 releases
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22 Jun 2006, at 16:35, Tres Seaver wrote: I believe that the extra flexibility which zpkg is intended to provide (dependency-based subset distributions, primarily) would be better served by moving Zope to use eggs, and that we should thus retire zpkg as the means for building Zope2 releases. Instead, we should recreate the version of the 'inst' stuff removed in the 2.9 beta cycle, and update it for any changes to the tree made since then. +1 Thanks Tres, I think many users will be happy about this. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEmtKzRAx5nvEhZLIRAojxAJ91LchtGqtffvleND/SMuN6m0c05gCfUnwd bwJetqs36Vwq4rnhNbEz1wU= =TcJf -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Proposal: Scrap zpkg for Zope2 releases
+1, back to the future... I'll note that when I was getting this stuff done in 2.7, it was incredibly useful to try to package Zope as an RPM (or deb, etc) while doing itbecause you find out where all the pointy edges are. Some of the functionality of the install routine (copyzopeskel in particular) was driven by a desire to make Zope easier to downstream- package. - C On Jun 22, 2006, at 10:35 AM, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I worked last night with folks from the Fedora Extras project who were trying to package Zope 2.9.3 for FC5+. Because they were working from the release tarball, generated by 'zpkg', much of my knowledge about how the build process works (or doesn't) was invalid: - The Makefile generated by 'zpkg' does not have bugfixes / features which have been made to the 'Makefile' created by 'configure' in a checkout. - The 'install.py' script has subtly-different semantics from the 'setup.py' script in the checkout. In particular, it was hard to figure out how to get the installed libraries correct for the x86_64 package. - We have had a bunch of bugs since 2.9 related to the 'zpkg'-based build, some related to lost features and other to various kinds of breakage (see #1967, #1968, #1996, #2030, #2081, #2082, #2083, #2121). - Working inside the 'zpkg'-generated tarball is *very* confusing, even for experienced Zope developers: Where is the source? is a frequent cry in such cases. All of this is due to the fact that none of the maintainers of Zope2 is also a conusmer of the zpkg-gnereated releases; those consumers are the downstream packagers and sysadmins who have no idea how to work in that setup, and who can't even (easily) get help on it from the Zope developer community. I believe that the extra flexibility which zpkg is intended to provide (dependency-based subset distributions, primarily) would be better served by moving Zope to use eggs, and that we should thus retire zpkg as the means for building Zope2 releases. Instead, we should recreate the version of the 'inst' stuff removed in the 2.9 beta cycle, and update it for any changes to the tree made since then. I volunteer to do the work, assuming the community concurs. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEmqrH+gerLs4ltQ4RApF2AKDTWq8XqY4OCuj5BpPZ3omCpnzEtwCghPnO nZ8S8NqTC1oZx8o3KVVJxBo= =4qXe -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Proposal: Scrap zpkg for Zope2 releases
Tres Seaver wrote at 2006-6-22 10:35 -0400: ... I believe that the extra flexibility which zpkg is intended to provide (dependency-based subset distributions, primarily) would be better served by moving Zope to use eggs, and that we should thus retire zpkg as the means for building Zope2 releases. I have never worked with zpkg but have read numerous messages about problems. I, for my part, am therefore in favour of your proposal. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: default view
Florent Guillaume wrote at 2006-6-22 14:50 +0200: ... Fixing this incompatibility without breaking applications which may be unknowingling dependent on it is going to be hard. Which is one of the reasons why abandoning it and moving on to Zope 3 traversal is the only sane way to proceed :) Abandon = deprecate, yes :) Congratulations: up to know one of the proposals with the highest rate of breakage :-( Hopefully, it will happen only after a very long time... -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: default view
Philipp von Weitershausen wrote at 2006-6-22 09:03 +0200: Dieter Maurer wrote: ... If you are working on it, then you should implement a means that __bobo_traverse__ can tell the caller that it should use the normal default. ... In our private Zope version, I have used an exception (UseTraversalDefault) for this purpose. I think that __bobo_traverse__ can raise AttributeError currently to indicate that it has failed to look up an attribute and that traversal should try other options. Apart from being a more explicit spelling, what advantage would UseTraversalDefault have? First of all, I had expected that you were in favour of explicit is better than implicit (usually, I am not). In this case, you should be happy with a more explicit spelling ;-) I do not know the current code in Zope 2.10, but earlier it looked like: if hasattr(object,'__bobo_traverse__'): try: subobject=object.__bobo_traverse__(request,entry_name) ... except (AttributeError, KeyError): if debug_mode: return response.debugError( Cannot locate object at: %s % URL) else: return response.notFoundError(URL) With this code, you were only partially right: __bobo_traverse__ could indeed raise an AttributeError to do something special -- but not to get the default traversal but to get a NotFound or a DebugError exception. That's quite different from what I proposed ;-) Should you prefer the implicit use of AttributeError over a more explicit use (the UseTraversalDefault was only some possibility; I am happy, if you find something better -- but equally explicit) to get the default traversal, I would not be completely unhappy but think: not optimal but better than nothing ;-) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-PAS] Domainauth
On Jun 22, 2006, at 3:25 AM, Janko Hauser wrote: Hello, I'm trying to setup a domain based authentication. The situation is, that there is already a cookie-based authentication. Additionally we want to enable a direct login for some specific domains. Is this at all possible? I added a Domain Auth Plugin and activated it as the authentication plugin. Then I changed the order for this interface, so that Domain Auth is on top. But a request from such a domain get's an unauthorized and is redirected to the normal login page. Is there something more needed? I tried with the exact IP and with an endswith match for the domain name. What do I miss? (It's been a long time since the DomainAuthHelper was created, forgive me if I'm slow) Are you using mod_rewrite by any chance? You may need to turn on X- Forwarded-For (I forget the exact header), since in the default case, REMOTE_HOST is usually the Apache instance in such a setup. Zac ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
Re: [Zope-PAS] Domainauth
Am 22.06.2006 um 13:48 schrieb Zachery Bir: Woops. Like I said, too long since I played in it. It runs request.getClientAddr(), which does take HTTP_X_FORWARDED_FOR, but only if the default REMOTE_ADDR is in an attribute called `trusted_proxies`. From lib/python/ZPublisher/HTTPRequest.py (in some 2.7 branch): # The trusted_proxies configuration setting contains a sequence # of front-end proxies that are trusted to supply an accurate # X_FORWARDED_FOR header. If REMOTE_ADDR is one of the values in this list # and it has set an X_FORWARDED_FOR header, ZPublisher copies REMOTE_ADDR # into X_FORWARDED_BY, and the last element of the X_FORWARDED_FOR list # into REMOTE_ADDR. X_FORWARDED_FOR is left unchanged. # The ZConfig machinery may sets this attribute on initialization # if any trusted-proxies are defined in the configuration file. trusted_proxies = [] (again, this is all if you're using mod_rewrite and VirtualHostMonster) Thank you Zac, yes I'm using mod_rewrite and VHM. I added the trusty- proxy directive into etc/zope.conf, but this seems to not work. But on further on this route I added a patch from Dieter Maurer to SiteAccess/VHM and I have now the right REMOTE_ADDR in the request. But no access to secured pages :-) Another thing I noticed it, that I see that a user authenticated by the cookie-login runs through the code of domain_auth. And the cookie- plugin is used for credential extraction. As far as I understand, the actual authentication is done later. So if the cookie-plugin does not found an appropriate cookie it redirects to the login-page and the domain_auth plugin is never used? With regards and thanks for the help, __Janko -- Janko Hauser email: [EMAIL PROTECTED] mobile: +49 1721 641552 PGP.sig Description: Signierter Teil der Nachricht ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
Re: [Zope-PAS] Re: Domainauth
Am 22.06.2006 um 15:39 schrieb Tres Seaver: The sequence which creates a user object is defined in the PAS.validate method: ... Very good documentation snipped I followed this path and found the culprit. The cookie_auth_helper extends the credentials with the remote_addr only if it found something before. else: # Look in the request for the names coming from the login form login = request.get('__ac_name', '') password = request.get('__ac_password', '') if login: creds['login'] = login creds['password'] = password if creds or 1: # or 1 added by jhauser creds['remote_host'] = request.get('REMOTE_HOST', '') try: creds['remote_address'] = request.getClientAddr() except AttributeError: creds['remote_address'] = request.get('REMOTE_ADDR', '') return creds So actually the question is, if the test for credentials is needed at all at this place. I will further look into this, but thanks to Tres and ZAC to lead me to this place. With regards, __Janko -- Janko Hauser email: [EMAIL PROTECTED] mobile: +49 1721 641552 PGP.sig Description: Signierter Teil der Nachricht ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas