[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ - Collector #2002: fixed broken 'ls -R' functionality (didn't
Log message for revision 41393: - Collector #2002: fixed broken 'ls -R' functionality (didn't recurse properly subclasses of OFS.Folder) Changed: U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt U Zope/branches/Zope-2_8-branch/lib/python/OFS/ObjectManager.py -=- Modified: Zope/branches/Zope-2_8-branch/doc/CHANGES.txt === --- Zope/branches/Zope-2_8-branch/doc/CHANGES.txt 2006-01-21 12:16:22 UTC (rev 41392) +++ Zope/branches/Zope-2_8-branch/doc/CHANGES.txt 2006-01-21 14:14:12 UTC (rev 41393) @@ -30,6 +30,8 @@ - Collector #1999: fixed broken FTP rename functionality (RNFR now returns 350 as status code instead 250) + - Collector #2002: fixed broken 'ls -R' functionality (didn't +recurse properly subclasses of OFS.Folder) Zope 2.8.5 (2005/12/19) Modified: Zope/branches/Zope-2_8-branch/lib/python/OFS/ObjectManager.py === --- Zope/branches/Zope-2_8-branch/lib/python/OFS/ObjectManager.py 2006-01-21 12:16:22 UTC (rev 41392) +++ Zope/branches/Zope-2_8-branch/lib/python/OFS/ObjectManager.py 2006-01-21 14:14:12 UTC (rev 41393) @@ -514,7 +514,7 @@ obj_ids.sort() for id in obj_ids: o=self._getOb(id) -if hasattr(o, 'isPrincipiaFolderish') and \ +if hasattr(aq_base(o), 'isPrincipiaFolderish') and \ o.isPrincipiaFolderish: r.append(o) return r @@ -629,7 +629,7 @@ break ob=ob.aq_parent -files=self.objectItems() +files = list(self.objectItems()) # recursive ride through all subfolders (ls -R) (ajung) @@ -637,15 +637,10 @@ all_files = copy.copy(files) for f in files: -if f[1].meta_type == Folder: +if hasattr(aq_base(f[1]), 'isPrincipiaFolderish') and f[1].isPrincipiaFolderish: all_files.extend(findChildren(f[1])) -else: -all_files.append(f) - files = all_files -files = list(files) - # Perform globbing on list of files (ajung) globbing = REQUEST.environ.get('GLOBBING','') @@ -723,12 +718,12 @@ find all children of an object (ajung) -lst =[] -for name,child in obj.objectItems(): -if child.meta_type==Folder: -lst.extend(findChildren(child,dirname+ obj.id + '/')) +lst = [] +for name, child in obj.objectItems(): +if hasattr(aq_base(child), 'isPrincipiaFolderish') and child.isPrincipiaFolderish: +lst.extend(findChildren(child, dirname + obj.id + '/')) else: -lst.append( (dirname + obj.id + / + name,child) ) +lst.append((dirname + obj.id + / + name, child)) return lst ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/tim-2.9-windows-installer/ - Collector #2002: fixed broken 'ls -R' functionality (didn't
Log message for revision 41394: - Collector #2002: fixed broken 'ls -R' functionality (didn't recurse properly subclasses of OFS.Folder) Changed: U Zope/branches/tim-2.9-windows-installer/doc/CHANGES.txt U Zope/branches/tim-2.9-windows-installer/lib/python/OFS/ObjectManager.py -=- Modified: Zope/branches/tim-2.9-windows-installer/doc/CHANGES.txt === --- Zope/branches/tim-2.9-windows-installer/doc/CHANGES.txt 2006-01-21 14:14:12 UTC (rev 41393) +++ Zope/branches/tim-2.9-windows-installer/doc/CHANGES.txt 2006-01-21 14:23:00 UTC (rev 41394) @@ -22,6 +22,11 @@ - Collector #1233: port ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8 + after Zope 2.9.0 + + - Collector #2002: fixed broken 'ls -R' functionality (didn't +recurse properly subclasses of OFS.Folder) + Zope 2.9.0 (2006/01/09) Bugs fixed Modified: Zope/branches/tim-2.9-windows-installer/lib/python/OFS/ObjectManager.py === --- Zope/branches/tim-2.9-windows-installer/lib/python/OFS/ObjectManager.py 2006-01-21 14:14:12 UTC (rev 41393) +++ Zope/branches/tim-2.9-windows-installer/lib/python/OFS/ObjectManager.py 2006-01-21 14:23:00 UTC (rev 41394) @@ -524,7 +524,7 @@ obj_ids.sort() for id in obj_ids: o=self._getOb(id) -if hasattr(o, 'isPrincipiaFolderish') and \ +if hasattr(aq_base(o), 'isPrincipiaFolderish') and \ o.isPrincipiaFolderish: r.append(o) return r @@ -641,7 +641,7 @@ break ob=ob.aq_parent -files=self.objectItems() +files = list(self.objectItems()) # recursive ride through all subfolders (ls -R) (ajung) @@ -649,15 +649,10 @@ all_files = copy.copy(files) for f in files: -if f[1].meta_type == Folder: +if hasattr(aq_base(f[1]), 'isPrincipiaFolderish') and f[1].isPrincipiaFolderish: all_files.extend(findChildren(f[1])) -else: -all_files.append(f) - files = all_files -files = list(files) - # Perform globbing on list of files (ajung) globbing = REQUEST.environ.get('GLOBBING','') @@ -735,12 +730,12 @@ find all children of an object (ajung) -lst =[] -for name,child in obj.objectItems(): -if child.meta_type==Folder: -lst.extend(findChildren(child,dirname+ obj.id + '/')) +lst = [] +for name, child in obj.objectItems(): +if hasattr(aq_base(child), 'isPrincipiaFolderish') and child.isPrincipiaFolderish: +lst.extend(findChildren(child, dirname + obj.id + '/')) else: -lst.append( (dirname + obj.id + / + name,child) ) +lst.append((dirname + obj.id + / + name, child)) return lst ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/ - Collector #2002: fixed broken 'ls -R' functionality (didn't
Log message for revision 41395: - Collector #2002: fixed broken 'ls -R' functionality (didn't recurse properly subclasses of OFS.Folder) Changed: U Zope/trunk/doc/CHANGES.txt U Zope/trunk/lib/python/OFS/ObjectManager.py -=- Modified: Zope/trunk/doc/CHANGES.txt === --- Zope/trunk/doc/CHANGES.txt 2006-01-21 14:23:00 UTC (rev 41394) +++ Zope/trunk/doc/CHANGES.txt 2006-01-21 14:24:58 UTC (rev 41395) @@ -197,6 +197,9 @@ Bugs Fixed + - Collector #2002: fixed broken 'ls -R' functionality (didn't +recurse properly subclasses of OFS.Folder) + - Collector #1992: unified the visible hostnames of the FTP and HTTP servers @@ -208,7 +211,6 @@ as specified through the 'charset' within the content-type property. - - Collector #1939: When running as a service, Zope could potentially collect too much log output filling the NT Event Log. When that happened, a 'print' during exception handling Modified: Zope/trunk/lib/python/OFS/ObjectManager.py === --- Zope/trunk/lib/python/OFS/ObjectManager.py 2006-01-21 14:23:00 UTC (rev 41394) +++ Zope/trunk/lib/python/OFS/ObjectManager.py 2006-01-21 14:24:58 UTC (rev 41395) @@ -527,7 +527,7 @@ obj_ids.sort() for id in obj_ids: o=self._getOb(id) -if hasattr(o, 'isPrincipiaFolderish') and \ +if hasattr(aq_base(o), 'isPrincipiaFolderish') and \ o.isPrincipiaFolderish: r.append(o) return r @@ -648,7 +648,7 @@ break ob=ob.aq_parent -files=self.objectItems() +files = list(self.objectItems()) # recursive ride through all subfolders (ls -R) (ajung) @@ -656,15 +656,10 @@ all_files = copy.copy(files) for f in files: -if f[1].meta_type == Folder: +if hasattr(aq_base(f[1]), 'isPrincipiaFolderish') and f[1].isPrincipiaFolderish: all_files.extend(findChildren(f[1])) -else: -all_files.append(f) - files = all_files -files = list(files) - # Perform globbing on list of files (ajung) globbing = REQUEST.environ.get('GLOBBING','') @@ -746,12 +741,12 @@ find all children of an object (ajung) -lst =[] -for name,child in obj.objectItems(): -if child.meta_type==Folder: -lst.extend(findChildren(child,dirname+ obj.id + '/')) +lst = [] +for name, child in obj.objectItems(): +if hasattr(aq_base(child), 'isPrincipiaFolderish') and child.isPrincipiaFolderish: +lst.extend(findChildren(child, dirname + obj.id + '/')) else: -lst.append( (dirname + obj.id + / + name,child) ) +lst.append((dirname + obj.id + / + name, child)) return lst ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/2.9/ - Collector #2002: fixed broken 'ls -R' functionality (didn't
Log message for revision 41399: - Collector #2002: fixed broken 'ls -R' functionality (didn't recurse properly subclasses of OFS.Folder) Changed: U Zope/branches/2.9/doc/CHANGES.txt U Zope/branches/2.9/lib/python/OFS/ObjectManager.py -=- Modified: Zope/branches/2.9/doc/CHANGES.txt === --- Zope/branches/2.9/doc/CHANGES.txt 2006-01-21 14:55:38 UTC (rev 41398) +++ Zope/branches/2.9/doc/CHANGES.txt 2006-01-21 15:19:11 UTC (rev 41399) @@ -22,7 +22,7 @@ - Collector #1233: port ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8 - after 2.9.0 + after 2.9.0 Bugs fixed @@ -35,6 +35,9 @@ - Replaced used of deprecated 'OFS.content_types' module with cognates from 'zope.app.content_types'. + - Collector #2002: fixed broken 'ls -R' functionality (didn't +recurse properly subclasses of OFS.Folder) + Zope 2.9.0 (2006/01/09) Bugs fixed Modified: Zope/branches/2.9/lib/python/OFS/ObjectManager.py === --- Zope/branches/2.9/lib/python/OFS/ObjectManager.py 2006-01-21 14:55:38 UTC (rev 41398) +++ Zope/branches/2.9/lib/python/OFS/ObjectManager.py 2006-01-21 15:19:11 UTC (rev 41399) @@ -524,7 +524,7 @@ obj_ids.sort() for id in obj_ids: o=self._getOb(id) -if hasattr(o, 'isPrincipiaFolderish') and \ +if hasattr(aq_base(o), 'isPrincipiaFolderish') and \ o.isPrincipiaFolderish: r.append(o) return r @@ -641,7 +641,7 @@ break ob=ob.aq_parent -files=self.objectItems() +files = list(self.objectItems()) # recursive ride through all subfolders (ls -R) (ajung) @@ -649,15 +649,10 @@ all_files = copy.copy(files) for f in files: -if f[1].meta_type == Folder: +if hasattr(aq_base(f[1]), 'isPrincipiaFolderish') and f[1].isPrincipiaFolderish: all_files.extend(findChildren(f[1])) -else: -all_files.append(f) - files = all_files -files = list(files) - # Perform globbing on list of files (ajung) globbing = REQUEST.environ.get('GLOBBING','') @@ -735,12 +730,12 @@ find all children of an object (ajung) -lst =[] -for name,child in obj.objectItems(): -if child.meta_type==Folder: -lst.extend(findChildren(child,dirname+ obj.id + '/')) +lst = [] +for name, child in obj.objectItems(): +if hasattr(aq_base(child), 'isPrincipiaFolderish') and child.isPrincipiaFolderish: +lst.extend(findChildren(child, dirname + obj.id + '/')) else: -lst.append( (dirname + obj.id + / + name,child) ) +lst.append((dirname + obj.id + / + name, child)) return lst ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
Re: [Zope-Checkins] SVN: Zope/branches/tim-2.9-windows-installer/ - Collector #2002: fixed broken 'ls -R' functionality (didn't
[Sidnei da Silva] Log message for revision 41394: - Collector #2002: fixed broken 'ls -R' functionality (didn't recurse properly subclasses of OFS.Folder) Changed: U Zope/branches/tim-2.9-windows-installer/doc/CHANGES.txt U Zope/branches/tim-2.9-windows-installer/lib/python/OFS/ObjectManager.py This certainly doesn't belong on the Windows installer branch. Nothing outside of inst/WinBuilders/ should change on this branch. ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
Re: [Zope-Checkins] SVN: Zope/branches/tim-2.9-windows-installer/ - Collector #2002: fixed broken 'ls -R' functionality (didn't
[Sidnei da Silva] Log message for revision 41394: - Collector #2002: fixed broken 'ls -R' functionality (didn't recurse properly subclasses of OFS.Folder) [Tim Peters] This certainly doesn't belong on the Windows installer branch. Nothing outside of inst/WinBuilders/ should change on this branch. Oops! I see you reverted it later -- never mind ;-) ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-dev] Zope tests: 8 OK
Summary of messages to the zope-tests list. Period Fri Jan 20 12:01:02 2006 UTC to Sat Jan 21 12:01:02 2006 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:02:02 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004058.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:03:32 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004059.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:05:02 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004060.html Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:06:32 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004061.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:08:02 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004062.html Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:09:33 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004063.html Subject: OK : Zope-2_9-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:11:03 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004064.html Subject: OK : Zope-trunk Python-2.4.2 : Linux From: Zope Unit Tests Date: Fri Jan 20 21:12:33 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004065.html ___ 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-PAS] Re: determination of User ID for new user
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: There is a bit of an issue here which I have been meaning to discuss: the IUserAdderPlugin interface is really narrow. When you create users in LDAP you need to populate the record with enough data to satisfy the requirements for the choosen objectClass. Since doAddUser only has the loginname to work with this is only possible in LDAP environments where the DN is keyed on the chosen login attribute and you do not mind filling the other obligatory attributes with bogus data. If your LDAP environment uses another attribute for DN (Active Directory does for example: it uses cn) it is impossible to create LDAP users using the IUserAdderPlugin interface. Which is actually fine. We aren't going to be able to come up with a uniform interface for all possible backends; instead, the application which drives user creation is going to need tweaking to accomodate what the backends require. I would like to see a way to get this fixed in Zope2, preferably in PAS. If I remember correctly PAU takes a different approach and passes a full user object to its doAddUser equivalent which guarantees a user creation plugin always has all user information it might require. Could we extend IUserAdderPlugin or add a new interface to support this kind of usage? I'd rather punt, as noted above, and have the application talk directly to the plugin (which is what PAU does, actually, I think). I don't see that making PAS a hyper-generic intermediary is a win for this problem. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD0k8e+gerLs4ltQ4RAjVzAJ4k/faNGoFiWuDpoxDValZd6hyyMwCfd86g bBpKdHF3wzZYvr3Lz7BrjXQ= =1JyY -END PGP SIGNATURE- ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
Re: [Zope-PAS] role management
Previously Jens Vagelpohl wrote: Roles are global. User objects get them assigned upon creation. Upon creation of what? Local roles are only used within the context they are defined in. So if user A has role Member after authenticating at the root in / acl_users, and he has a local role Manager in /members/A, then security validation will recognize him as Member and Manager for all items accessed in or underneath /members/A, but only as Member everywhere else. Right. If ZODBRoleManager does not see global roles added after its instantiation then that's a bug. ZODBRoleManager only adds and updates roles in itself and never in the RoleManager, which suggests that it is meant to take over global role management completely. So I'm thinking that it should either indeed take that role and implement an interface for it, or not and always use __ac_roles__ from the closest containing RoleManager instead of using its internal data structure. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
Re: [Zope] Zope and Sqlite3 adapter
I don't use sqlite. I hope this linki http://www.initd.org/ would be useful to you.CYDavid Pratt [EMAIL PROTECTED] wrote: Hi Dieter. Many thanks. :-) I was hoping there might be something but if I cannot locate anything existing, I will likely go this route if I can find a bit more time.Regards,DavidDieter Maurer wrote: David Pratt wrote at 2006-1-20 10:00 -0400: Hi can someone advise whether there is an adapter for sqlite3 for zope. I normally use Postgres but I am curious about this for lightweight use. I realize sqlite3 is not multi-threaded itself but might be fine for small volume sites (if it can be forced to use a single thread for interaction with the db). Does anyone have any experience they can share if they have tried this before. Many thanks. I think almost all DA for DB API 2 compatible modules have a common ancestor. They are all very similar. If there is not yet a DA, it should be easy to copy an existing DA and make some minor adjustments for "SQLite3". ___Zope maillist - Zope@zope.orghttp://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 ) What are the most popular cars? Find out at Yahoo! Autos ___ 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] Indexing files
Hei All. I have the following problem: I am building up a ZCatalog and indexing my DTML methods. I use the index type ZCTextIndex and the object function PrincipiaSearchSource. It works fine. But when I try to index my Files (type File) with index type ZCTextIndex and the object function SearchableText it finds no words and the index is empty. Am I using the wrong object function? Thanks, Sune ___ 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] Can not authenticate witn zope http server
On 21 Jan 2006, at 03:03, papi mac wrote: a) Why does Zope insiist on authenticating access to the main page and is there a way to tell it to let me access the main page (the one that talks about Zope and lets you access manage) without a login? b) Does it make sense to keep trying or is Data.fs or some other file corrupted? Does the user account that originally created those objects exist on the new server? There is no corruption, no. You will always be able to repair this using the emergency user. See SECURITY.txt in the Zope source code for how to create it. inituser is something different and will not help you. jens ___ 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] Indexing files
On 21 Jan 2006, at 13:02, Sune Christiansen wrote: Hei All. I have the following problem: I am building up a ZCatalog and indexing my DTML methods. I use the index type ZCTextIndex and the object function PrincipiaSearchSource. It works fine. But when I try to index my Files (type File) with index type ZCTextIndex and the object function SearchableText it finds no words and the index is empty. Am I using the wrong object function? Zope File objects do not support indexing their textual content. You will need to implement your own text retrieval or use some of the other indices out there like Andreas Jung's TextIndexNG which come with suitable modules that can pull text out of various file formats. jens ___ 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] Can not authenticate witn zope http server
Jens;Jens Vagelpohl [EMAIL PROTECTED] wrote: Does the user account that originally created those objects exist on the new server? [Yes, I'm really talking about the original server where I can not authenticate.] There is no corruption, no. You will always be able to repair this using the emergency user. See SECURITY.txt in the Zope source code for how to create it. inituser is something different and will not help you. [Ok, I'll have access to the machine on Monday and see what turns up. What I don't understanda is why Zope would suddenly want to authenticate access to a page that was always available to anyone. I'll post back after checking the results.] jens___Zope maillist - Zope@zope.orghttp://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 ) Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.___ 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] Can not authenticate witn zope http server
On 21 Jan 2006, at 13:46, papi mac wrote: [Ok, I'll have access to the machine on Monday and see what turns up. What I don't understanda is why Zope would suddenly want to authenticate access to a page that was always available to anyone. I'll post back after checking the results.] There can be all kinds of reasons, no one without knowledge of how you administer your Zope instance or what exactly you did to move it will be able to tell you. jens P.S.: Your quoting is all broken... ___ 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] Indexing files
Jens Vagelpohl schrieb: On 21 Jan 2006, at 13:02, Sune Christiansen wrote: Hei All. I have the following problem: I am building up a ZCatalog and indexing my DTML methods. I use the index type ZCTextIndex and the object function PrincipiaSearchSource. It works fine. But when I try to index my Files (type File) with index type ZCTextIndex and the object function SearchableText it finds no words and the index is empty. Am I using the wrong object function? Zope File objects do not support indexing their textual content. You will need to implement your own text retrieval or use some of the other indices out there like Andreas Jung's TextIndexNG which come with suitable modules that can pull text out of various file formats. Newer Zopes have file-objects indexable via PrincipiaSearchSource if their content-type is text/* OFS/Image.py, 423ff: def PrincipiaSearchSource(self): Allow file objects to be searched. if self.content_type.startswith('text/'): return str(self.data) return '' HTH tino ___ 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] can't create user with zopectl - Resource temporarily unavailable
Hi I've been trying to use adduser through zopectl on a dev instance of zope but get the following error. Is the lock file the problem? Thanks File /opt/Zope-2.8/lib/python/ZODB/FileStorage/FileStorage.py, line 114, in __init__ self._lock_file = LockFile(file_name + '.lock') File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 63, in __init__ lock_file(self._fp) File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 42, in lock_file fcntl.flock(file.fileno(), _flags)IOError: [Errno 11] Resource temporarily unavailable ___ 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: can't create user with zopectl - Resource temporarily unavailable
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 michael nt milne wrote: Hi I've been trying to use adduser through zopectl on a dev instance of zope but get the following error. Is the lock file the problem? Thanks File /opt/Zope-2.8/lib/python/ZODB/FileStorage/FileStorage.py, line 114, in __init__ self._lock_file = LockFile(file_name + '.lock') File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 63, in __init__ lock_file(self._fp) File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable If you aren't running the appserver with a ZEO storage, you will need to stop the appserver before running 'inituser'. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD0lTN+gerLs4ltQ4RAtihAJ9yWGdsfdurhthOCpIdqDMcWBeflgCgx7mX g484NSG+1/7VuPvpONucW9c= =bp5N -END PGP SIGNATURE- ___ 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] can't create user with zopectl - Resource temporarily unavailable
--On 21. Januar 2006 15:16:35 + michael nt milne [EMAIL PROTECTED] wrote: File /opt/Zope-2.8/lib/python/ZODB/FileStorage/FileStorage.py, line 114, in __init__ self._lock_file = LockFile(file_name + '.lock') File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 63, in __init__ lock_file(self._fp) File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable Try it again while your Zope instance is shutdown. -aj pgpyBhI9Y1uHB.pgp Description: PGP signature ___ 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] Zope and Sqlite3 adapter
On 1/21/06, David Pratt [EMAIL PROTECTED] wrote: Hi Dieter. Many thanks. :-) I was hoping there might be something but ifI cannot locate anything existing, I will likely go this route if I canfind a bit more time. isn't this it? http://www.google.com.my/search?hs=OJfhl=ensafe=offclient=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=sqlite3+zopebtnG=Searchmeta= Regards,DavidDieter Maurer wrote: David Pratt wrote at 2006-1-20 10:00 -0400: Hi can someone advise whether there is an adapter for sqlite3 for zope. I normally use Postgres but I am curious about this for lightweightuse. I realize sqlite3 is not multi-threaded itself but might be fine for small volume sites (if it can be forced to use a single thread forinteraction with the db). Does anyone have any experience they can shareif they have tried this before. Many thanks. I think almost all DA for DB API 2 compatible modules have a common ancestor. They are all very similar. If there is not yet a DA, it should be easy to copy an existing DA and make some minor adjustments for SQLite3.___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] can't create user with zopectl - Resource temporarily unavailable
Thanks. I set up a new instance but yes that would be the issue. I hadn't stopped the zope server. By the way I had a couple of issues running the mkzopesintance.py file as non-root. Had to use a browser based webadmintool to assign permissions. Would you know the unix syntax to assign read, write and execute permissions to a user on a whole directory which is required for running mkzopesintance.py under the non-root user? I tried chgrp and chmod but couldn't get it working command line. On 1/21/06, Andreas Jung [EMAIL PROTECTED] wrote: --On 21. Januar 2006 15:16:35 + michael nt milne [EMAIL PROTECTED] wrote: File /opt/Zope-2.8/lib/python/ZODB/FileStorage/FileStorage.py, line 114, in __init__ self._lock_file = LockFile(file_name + '.lock') File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 63, in __init__ lock_file(self._fp) File /opt/Zope-2.8/lib/python/ZODB/lock_file.py, line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailableTry it again while your Zope instance is shutdown.-aj ___ 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: can't create user with zopectl - Resource temporarily unavailable
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 michael nt milne wrote: Thanks. I set up a new instance but yes that would be the issue. I hadn't stopped the zope server. By the way I had a couple of issues running the mkzopesintance.py file as non-root. Had to use a browser based webadmin tool to assign permissions. Would you know the unix syntax to assign read, write and execute permissions to a user on a whole directory which is required for running mkzopesintance.py under the non-root user? I tried chgrp and chmod but couldn't get it working command line. 'chown -R' changes the ownership (including group, if specified) recursively; 'chmod -R' should apply the user-group-world settings recursively. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD0nU8+gerLs4ltQ4RAos4AJ9HuasjpN50kOIvAOxl7vNUF+VMIwCZAVD1 axguVCWCue1cYGMHrSLNTCI= =QI39 -END PGP SIGNATURE- ___ 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] can't create user with zopectl - Resource temporarily unavailable
On 21 Jan 2006, at 17:46, michael nt milne wrote: Would you know the unix syntax to assign read, write and execute permissions to a user on a whole directory which is required for running mkzopesintance.py under the non-root user? I tried chgrp and chmod but couldn't get it working command line. Use the man pages: man chmod/man chown jens ___ 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] What product to choose?
First of all, greetings to everyone :)! I have been given a task to choose appropriate software for developing two projects, that is - web pages. I'm quite familiar with many software products available out there, but I don't have the time to thoroughly test each one and then decide which one to use. So, this is the place where you guys come in - I will briefly as possible describe specifications of both projects and I would like to hear from you what would be the best platform to implement both projects. First one is something like a mathematical encyclopedia and online collaboration tool - mix between MathWorld (http://mathworld.wolfram.com/) and a Wiki of some kind (http://www.wikipedia.org). The most important feature is this: users must be able to edit documents using syntax similar to LaTeX (no WYSIWYG-like editor), because after all web will contain a lot's of math formulas and expressions, and most of the users are already accustomed with (La)TeX. There is a similar implementation in LatexWiki (http://mcelrath.org/Notes/LatexWiki), addon for ZWiki, which is Zope 2 based, but I haven't tested that one out so I can't really say is that exactly what I need. Second most important feature is that of interconnections of articles - for example: when I define and write let's say Pitagora's theorem, I want to be able to include (much like C's #include , and Python's import something) into other documents. This way all the material can be defined in central repository and broken into small pieces (theorems, proofs, tasks...) and then reorganized as needed. Second web is much less complicated - it's intended to be a mix between news portal and searchable database of medical and similar products. Currently, I'm reviewing few options for implementing those two projects - plain Zope 2 or a Zope 2 based CMS (Plone, ZWiki, etc). If there is a Zope 2 based CMS that satisfies most of my requirements, I wouldn't mind using that. But, since Zope 2 will be someday replaced by Zope 3, I'm not that happy to use an already outdated product. That brings me to my next question - would it be smart to try to develop this using Zope 3? Is it mature and production ready enough? There is a third possibility, try to do it from scratch using Python (since that is the only language I'm good in that is suited for web development), but that seems like to big hassle. I'm mostly biased forwards Zope 3, since it's quite a new product with (I hope :) bright future - i'm just not sure someone with zero Zope knowledge (although, I know Python quite well) can develop both projects in under a half a year. There, that's all I can think of now, any thoughts, ideas, URL's are very much appreciated. Thank you in advance. -- Karlo Lozovina - Mosor ___ 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] Zope and Sqlite3 adapter
Wow. Thanks Bakhtiar! I did some searching but was unable to locate it so many thanks for this link. Now I can experiment. It sounds like an odd combination with zope but I am curious mostly. I just wanted to see how it would cope for something small. Regards, David Bakhtiar A Hamid wrote: On 1/21/06, *David Pratt* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Dieter. Many thanks. :-) I was hoping there might be something but if I cannot locate anything existing, I will likely go this route if I can find a bit more time. isn't this it? http://www.google.com.my/search?hs=OJfhl=ensafe=offclient=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=sqlite3+zopebtnG=Searchmeta= http://www.google.com.my/search?hs=OJfhl=ensafe=offclient=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=sqlite3+zopebtnG=Searchmeta= Regards, David Dieter Maurer wrote: David Pratt wrote at 2006-1-20 10:00 -0400: Hi can someone advise whether there is an adapter for sqlite3 for zope. I normally use Postgres but I am curious about this for lightweight use. I realize sqlite3 is not multi-threaded itself but might be fine for small volume sites (if it can be forced to use a single thread for interaction with the db). Does anyone have any experience they can share if they have tried this before. Many thanks. I think almost all DA for DB API 2 compatible modules have a common ancestor. They are all very similar. If there is not yet a DA, it should be easy to copy an existing DA and make some minor adjustments for SQLite3. ___ Zope maillist - Zope@zope.org mailto: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-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- http://myzope.kedai.com.my 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] What product to choose?
Karlo Lozovina a écrit : (snip) First one is something like a mathematical encyclopedia and online collaboration tool - mix between MathWorld (http://mathworld.wolfram.com/) and a Wiki of some kind (http://www.wikipedia.org). (snip) Second web is much less complicated - it's intended to be a mix between news portal and searchable database of medical and similar products. Currently, I'm reviewing few options for implementing those two projects - plain Zope 2 or a Zope 2 based CMS (Plone, ZWiki, etc). If there is a Zope 2 based CMS that satisfies most of my requirements, I wouldn't mind using that. For the first project, I don't think you'll find an out-of-the-box solution, nor you can reasonnably expect to forcefit it into a CMF based CMS. Zwiki could be a good starting block, then you're on your own IMHO. For the second one, I think it could fit into Plone but - depending on the complexity of what you call a news portal, and unless you really need all the 'community portal' part of Plone - you may be better rolling your own product(s). But, since Zope 2 will be someday replaced by Zope 3, I'm not that happy to use an already outdated product. That brings me to my next question - would it be smart to try to develop this using Zope 3? Is it mature and production ready enough? I can't answer about stability and such - but if you don't intend to use an existing Zope2 CMS, you may as well take the Zope3 road... (I wouldn't bet my hand on this, but I think I saw a Zope3 port of Zwiki somewhere...) There is a third possibility, try to do it from scratch Err... YMMV, but I wouldn't do that. using Python (since that is the only language I'm good in that is suited for web development), but that seems like to big hassle. no comment... There, that's all I can think of now, any thoughts, ideas, URL's are very much appreciated. Zope has surely a lot to offer. But you may also want to check some other solutions, like Django or Turbogears (2 rails-like fullstack 'MVC' frameworks), or Myghty (HTML:Mason Python port). My 2 cents. ___ 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] What product to choose?
Hi Karlo. Just a few thoughts... I think you would be wise to choose Zope2 for the moment if you feel CMF is the best fit since it is tried and true. Also due to availability of getting help or availability of documentation if your time is tight. I have been developing with Zope2 for almost three years and I am still learning things all the time. I have not been let down by any lack of capabilility other than some more pythonic ways of working and interacting with relational databases. Just to give you an idea from activity on mailing lists since Dec 9 (from my mail system) Plone 1778 Zope 557 Zope3 287 TurboGears 2827 Django 1222 CherryPy 184 I can't say that I feel Zope2 is outdated or a dead end as there is a CMF 1.6 and a CMF 2.0 release on the horizon for Zope2. In fact, I feel if anything Zope2 has been revitalized with Five development and there is no need to feel that it is anything less that a solid and proven framework. Sometimes I have to resist the temptation to jump to the latest and greatest since swimming in a pool of uncertainty can be troublesome. My opinion is that you can have the best of both worlds for some significant time before there is a Zope3 CMF equivalent. When that happens, it should be easier with Five to migrate (and there ought to be more in common). There are also some other popular frameworks that have a shorter learning curve like TurboGears, Django or even CherryPy with active communities if you are on a tight time line (that work nicely with relational database backends) I guess it will depend on your choice of a backend - whether you want an object database or relational database. Regards, David Karlo Lozovina wrote: First of all, greetings to everyone :)! I have been given a task to choose appropriate software for developing two projects, that is - web pages. I'm quite familiar with many software products available out there, but I don't have the time to thoroughly test each one and then decide which one to use. So, this is the place where you guys come in - I will briefly as possible describe specifications of both projects and I would like to hear from you what would be the best platform to implement both projects. First one is something like a mathematical encyclopedia and online collaboration tool - mix between MathWorld (http://mathworld.wolfram.com/) and a Wiki of some kind (http://www.wikipedia.org). The most important feature is this: users must be able to edit documents using syntax similar to LaTeX (no WYSIWYG-like editor), because after all web will contain a lot's of math formulas and expressions, and most of the users are already accustomed with (La)TeX. There is a similar implementation in LatexWiki (http://mcelrath.org/Notes/LatexWiki), addon for ZWiki, which is Zope 2 based, but I haven't tested that one out so I can't really say is that exactly what I need. Second most important feature is that of interconnections of articles - for example: when I define and write let's say Pitagora's theorem, I want to be able to include (much like C's #include , and Python's import something) into other documents. This way all the material can be defined in central repository and broken into small pieces (theorems, proofs, tasks...) and then reorganized as needed. Second web is much less complicated - it's intended to be a mix between news portal and searchable database of medical and similar products. Currently, I'm reviewing few options for implementing those two projects - plain Zope 2 or a Zope 2 based CMS (Plone, ZWiki, etc). If there is a Zope 2 based CMS that satisfies most of my requirements, I wouldn't mind using that. But, since Zope 2 will be someday replaced by Zope 3, I'm not that happy to use an already outdated product. That brings me to my next question - would it be smart to try to develop this using Zope 3? Is it mature and production ready enough? There is a third possibility, try to do it from scratch using Python (since that is the only language I'm good in that is suited for web development), but that seems like to big hassle. I'm mostly biased forwards Zope 3, since it's quite a new product with (I hope :) bright future - i'm just not sure someone with zero Zope knowledge (although, I know Python quite well) can develop both projects in under a half a year. There, that's all I can think of now, any thoughts, ideas, URL's are very much appreciated. Thank you in advance. ___ 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 )