[Zope-dev] Problem
Hello Sir, I want to create a portal for indian languages using zope. The problem is that the programms which handles all font related issues or textto speech conversion etc for the site (for Indian Languages) are in C and Visual Basic and the programmes are too lenthy that we cann't rewrite them. Kindly tell me is there any way to use tham with zope. Thanking you, Yours truly, Anvita Bajpai Research Engineer IIT Kanpur - India.
[Zope-dev] ZODB : store and retrieve (more specific)
Hi, I want to create a persistent List (I want to store data for a long time without using a relational database). I have found source of such list but I don't know how to use it. The things that I want to know are : -- how could I use personnal object (in Python language) -- how could I store and retrieve these object ? I Hope that anybody can help me thanks... ___ 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] (no subject)
Hi, I have one problem with a Zmethod. Here is the method: select *,summe=sum(count(*)) from neuigkeiten where ( username like '%!--#var suche--%' or autorloginname like '%!--#var suche--%' or headline like '%!--#var suche--%' or textfeld like '%!--#var suche--%') order by headline That is i want to select some data from database and save the number of data who are found in summe. There is no error at this level, but there is a problem when i list the result in the dtml document. There are more data as i need. Please would you help me to resolv this problem!! Thank Bruno ___ 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] Standard Error Messages (was Re: [Zope-dev] Incorrect Padding?)
Steve Alexander wrote: ! raise 'InternalError', request.response._error_html( Can someone enlighten me as to what this does? Does it reset the HTTP response code? Is _error_html something that gets the acquired standard_error_message? If not, it should do ;-) Has anyone made any progress on getting Unauthorized errors to use standard_error_message? Here's hoping... 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 )
[Zope-dev] Use ZODB3 and ZCatalog for indexing purposes
Hi, I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project. The actual cd-roms will seldom change after they've been registered, and I'd like to have some sort of auto-full-text-search feature. How does ZODB3 and ZCatalog fit in this picture? I'm NOT making a Zope-product yet, just a plain python-script, using ZODB/ZCatalog for storage. Later, the thing will have a Zope-interface, but for now I'm having so much trouble with my current implementation using PostgreSQL, mostly due to the fact that I cannot get full-text-searching, that I really need some progress now. I'm dealing with plain python objects the entire time, but searching is alpha/omega in this case and will break it completly if not implemented correctly. Any hints, tips, flames or just emails sent out of boredome, I'm a lonely coder who needs a stinkin' break before I go completly nuts, so any feedback will be great. :- Thomas ___ 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] Use ZODB3 and ZCatalog for indexing purposes
Thomas, Have you seen the Zope on CDROM howto? Try searching on zope.org (when it's back up that is) for it. hth Phil - Original Message - From: "Thomas Weholt" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 25, 2000 10:27 AM Subject: [Zope-dev] Use ZODB3 and ZCatalog for indexing purposes Hi, I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project. The actual cd-roms will seldom change after they've been registered, and I'd like to have some sort of auto-full-text-search feature. How does ZODB3 and ZCatalog fit in this picture? I'm NOT making a Zope-product yet, just a plain python-script, using ZODB/ZCatalog for storage. Later, the thing will have a Zope-interface, but for now I'm having so much trouble with my current implementation using PostgreSQL, mostly due to the fact that I cannot get full-text-searching, that I really need some progress now. I'm dealing with plain python objects the entire time, but searching is alpha/omega in this case and will break it completly if not implemented correctly. Any hints, tips, flames or just emails sent out of boredome, I'm a lonely coder who needs a stinkin' break before I go completly nuts, so any feedback will be great. :- Thomas ___ 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 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] Use ZODB3 and ZCatalog for indexing purposes
Phil Harris wrote: Have you seen the Zope on CDROM howto? Try searching on zope.org (when it's back up that is) for it. I don't think it's relevant actually. WHat you do want is Jim Fulton's talk about ZODB from IPC8 - search zope.org for that. -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C ___ 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] Memebrship User management
OK, so I have been working on a set of user management methods for Membership by ta. I have it where I can see a list of users, and their roles. now, what I need is a way to modify Roles. So, looking into the source, I see that roles exists (as currently implemented) as __roles. This means that you can't modify roles from the web. So, I added this to the MemberMixin: def changeRoles(self,roles): self.__roles=roles return self.getRoles() Restartted zope, yadda yadda. Now, it appears to be setting the roles (if I return self.__roles I see the changes), but the changes are not persistent, since the roles don't seem to be changed. The above will return the same roles the user had prior to the call to changeRoles. :( So, thinking back to the transactional nature of the ZODB, I added a: get_transaction().commit(1) ...before the return ... no luck. Then tried: get_transaction().commit(1) ...same result. Now, it is getting early (you know, once you past 'late' ;^) ... and my brain is shutting down. So I figured I would post this to the list, to see if anyone has any bright (or not-so-bright) ideas. Yeah, I know the above is a total kludge, but I wan't to get this working before re-implenting a 'bettr' default PUS, to make sure I understand what I am doing. {:^)= Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] Now; - problems using ZODB/ZCatalog in Python
First off, sorry for posting a huge, stinkin' post like this, but instead of posting ten times trying to explain what I do, I post this once and hope somebody can point out what's wrong and I'll leave you all alone, at least for a while. The example is from the Catalog outside Zope-tutorial available at Zope.org. I'm using Zope 2.2.0. This might have been written for Zope 2.1.6. I dunno. I understand the error message, just don't why it is raised. If I should call some form of commit() or close(), where should this be done? And, by the way, does Catalog support different kinds of searches, like matching all the search-words, some, does the order count ? Can this options be set, if any exists? Anyway, thanks for your patience and bandwidth. Thomas import sys sys.path.append('d:\\progra~1\\website\\lib\\python\\') import ZODB import Persistence from Persistence import Persistent from ZODB.FileStorage import FileStorage from Products.ZCatalog.Catalog import Catalog ### create some classes to be persistent class Nobody( Persistent ): def identify( self ): print "I am Nobody!" class Person( Persistent ): def __init__( self, first, name, email, friend=Nobody() ): self.first = first self.name = name self.email = email self.friend= friend def identify( self ): print "I am " + self.first + " " + self.name print "and my Email is " + self.email ### OK, the ZODB-API together with a Catalog-Class class Application: def __init__( self, file='test.fs' ): self.file= file self.db = ZODB.DB( FileStorage( file ) ) self.co = self.db.open() self.root= self.co.root() if self.root.has_key( 'cat' ): self.cat= self.root['cat'] else: self.cat= Catalog() ### This is, how I get it to work self.cat.aq_parent= self.root self.root['cat']= self.cat ### Add indexes to the Catalog-Class ### The names must match the fields of the Person-Class! self.cat.addIndex('first','FieldIndex' ) self.cat.addIndex('name' ,'FieldIndex' ) self.cat.addIndex('email','FieldIndex' ) get_transaction().commit() def storePerson( self, person ): uid= id( person ) print "stored as " + str( uid ) self.root[uid]= person ### Let the Catalog know from this object self.cat.catalogObject( person, uid ) get_transaction().commit() def searchPerson( self, **kw ): r= self.cat.searchResults( kw ) paths= self.cat.paths root = self.root k= [] for i in r: id= i.data_record_id_ k.append( root[paths[id]] ) return k if __name__ == '__main__': a= Application() p1= Person( 'marian','kelc','[EMAIL PROTECTED]' ) p2= Person( 'tanja', 'kreierhoff','[EMAIL PROTECTED]', p1 ) p1.friend= p2 a.storePerson( p1 ) a.storePerson( p2 ) ### test2.py a= Application() ### perform searches with keyword-arguments ids= a.searchPerson( name='kelc' ) for i in ids: i.identify() print "Friend is:" i.friend.identify() i.friend.friend.identify() print str( id( i ) ) print str( id( i.friend.friend ) ) stored as 24111488 stored as 16520248 Traceback (innermost last): File "D:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 307, in RunScript debugger.run(codeObject, __main__.__dict__, start_stepping=0) File "D:\Program Files\Python\Pythonwin\pywin\debugger\__init__.py", line 71, in run _GetCurrentDebugger().run(cmd, globals,locals, start_stepping) File "D:\Program Files\Python\Pythonwin\pywin\debugger\debugger.py", line 533, in run _doexec(cmd, globals, locals) File "D:\Program Files\Python\Pythonwin\pywin\debugger\debugger.py", line 868, in _doexec exec cmd in globals, locals File "D:\python\life\zodb_zcatalog.py", line 84, in ? a= Application() File "D:\python\life\zodb_zcatalog.py", line 28, in __init__ self.db = ZODB.DB( FileStorage( file ) ) File "D:\PROGRA~1\WebSite\lib\python\ZODB\FileStorage.py", line 262, in __init__ lock_file(f) File "D:\PROGRA~1\WebSite\lib\python\ZODB\lock_file.py", line 115, in lock_file raise error, ( StorageSystemError: Could not lock the database file. There must be another process that has opened the file. p ___ 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] Now; - problems using ZODB/ZCatalog in Python
thomas, this error message is raised when the zope instance that contains the ZODB you're trying to work with is already running (and thereby put its own lock on the ZODB). are you trying to execute this script while zope is running? you need to shut it down first. jens -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Weholt Sent: Tuesday, July 25, 2000 06:34 To: '[EMAIL PROTECTED]' Subject: [Zope-dev] Now; - problems using ZODB/ZCatalog in Python I understand the error message, just don't why it is raised. If I should call some form of commit() or close(), where should this be done? And, by the way, does Catalog support different kinds of searches, like matching all the search-words, some, does the order count ? Can this options be set, if any exists? Anyway, thanks for your patience and bandwidth. Thomas import sys sys.path.append('d:\\progra~1\\website\\lib\\python\\') import ZODB import Persistence from Persistence import Persistent from ZODB.FileStorage import FileStorage from Products.ZCatalog.Catalog import Catalog ### create some classes to be persistent class Nobody( Persistent ): def identify( self ): print "I am Nobody!" class Person( Persistent ): def __init__( self, first, name, email, friend=Nobody() ): self.first = first self.name = name self.email = email self.friend= friend def identify( self ): print "I am " + self.first + " " + self.name print "and my Email is " + self.email ### OK, the ZODB-API together with a Catalog-Class class Application: def __init__( self, file='test.fs' ): self.file= file self.db = ZODB.DB( FileStorage( file ) ) self.co = self.db.open() self.root= self.co.root() if self.root.has_key( 'cat' ): self.cat= self.root['cat'] else: self.cat= Catalog() ### This is, how I get it to work self.cat.aq_parent= self.root self.root['cat']= self.cat ### Add indexes to the Catalog-Class ### The names must match the fields of the Person-Class! self.cat.addIndex('first','FieldIndex' ) self.cat.addIndex('name' ,'FieldIndex' ) self.cat.addIndex('email','FieldIndex' ) get_transaction().commit() def storePerson( self, person ): uid= id( person ) print "stored as " + str( uid ) self.root[uid]= person ### Let the Catalog know from this object self.cat.catalogObject( person, uid ) get_transaction().commit() def searchPerson( self, **kw ): r= self.cat.searchResults( kw ) paths= self.cat.paths root = self.root k= [] for i in r: id= i.data_record_id_ k.append( root[paths[id]] ) return k if __name__ == '__main__': a= Application() p1= Person( 'marian','kelc','[EMAIL PROTECTED]' ) p2= Person( 'tanja', 'kreierhoff','[EMAIL PROTECTED]', p1 ) p1.friend= p2 a.storePerson( p1 ) a.storePerson( p2 ) ### test2.py a= Application() ### perform searches with keyword-arguments ids= a.searchPerson( name='kelc' ) for i in ids: i.identify() print "Friend is:" i.friend.identify() i.friend.friend.identify() print str( id( i ) ) print str( id( i.friend.friend ) ) stored as 24111488 stored as 16520248 Traceback (innermost last): File "D:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 307, in RunScript debugger.run(codeObject, __main__.__dict__, start_stepping=0) File "D:\Program Files\Python\Pythonwin\pywin\debugger\__init__.py", line 71, in run _GetCurrentDebugger().run(cmd, globals,locals, start_stepping) File "D:\Program Files\Python\Pythonwin\pywin\debugger\debugger.py", line 533, in run _doexec(cmd, globals, locals) File "D:\Program Files\Python\Pythonwin\pywin\debugger\debugger.py", line 868, in _doexec exec cmd in globals, locals File "D:\python\life\zodb_zcatalog.py", line 84, in ? a= Application() File "D:\python\life\zodb_zcatalog.py", line 28, in __init__ self.db = ZODB.DB( FileStorage( file ) ) File "D:\PROGRA~1\WebSite\lib\python\ZODB\FileStorage.py", line 262, in __init__ lock_file(f) File "D:\PROGRA~1\WebSite\lib\python\ZODB\lock_file.py", line 115, in lock_file raise error, ( StorageSystemError: Could not lock the database file. There must be another process that has opened the file. p ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -
Re: [Zope-dev] ZODB : store and retrieve (more specific)
Hi, I want to create a persistent List (I want to store data for a long time without using a relational database). I have found source of such list but I don't know how to use it. The things that I want to know are : -- how could I use personnal object (in Python language) -- how could I store and retrieve these object ? I Hope that anybody can help me thanks... You can either use the PersistentMapping object that comes with Zope "from ZODB.PersistentMapping import PersistentMapping" or AndrewWilcox's http://www.zope.org/Members/AndrewWilcox/PersistentListDict. PersistentMapping is limited to string keys only, which is sufficient most of the time. Just create a PersistentMapping in your Zope class and use it as if it was a regular python dictionary. PersistentMapping takes care of setting the necessary attributes for it to be persistent. Alternative you can use a TinyTable directly in Zope for storing a table. Regards, Johan Carlsson ___ 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] Use ZODB3 and ZCatalog for indexing purposes
Thomas Weholt wrote: Hi, I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project. The actual cd-roms will seldom change after they've been registered, and I'd like to have some sort of auto-full-text-search feature. How does ZODB3 and ZCatalog fit in this picture? I'm NOT making a Zope-product yet, just a plain python-script, using ZODB/ZCatalog for storage. Later, the thing will have a Zope-interface, but for now I'm having so much trouble with my current implementation using PostgreSQL, mostly due to the fact that I cannot get full-text-searching, that I really need some progress now. I'm dealing with plain python objects the entire time, but searching is alpha/omega in this case and will break it completly if not implemented correctly. Any hints, tips, flames or just emails sent out of boredome, I'm a lonely coder who needs a stinkin' break before I go completly nuts, so any feedback will be great. :- You're definitely looking for this article. It explains very clearly how to access ZODB without the rest of the Zope framework. http://starship.python.net/~amk/python/writing/zodb-zeo.html Shane ___ 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] Nameconflict 'Property' and Object in Folder
Hi all, has there some discussions about a name conflict, if I start to add an object to a folder with an object-id wich is also a Property of the folder ? In the method _checkId of the ObjectManager e.g. the folder is checked with hasatrr(this,id). And this is true if there exists a property with the same name as the object-id. I see no workaround, because a property or an object are attributs of the folder. Any comments ? Martin ___ 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] ZCatalog and ZEO
I have started to use ZCatalog for a great deal of thing, but I'm a little bit conserned about scalability. If I whan to move my applications to a ZEO configuration how will my ZCatalogs be distributed. I use ZCatalogs alote and they may become quite large, so what will happen when a ZCatalog is updated, for instance if a new object registers it self and gets indexed. 1. The ZEO server sends expiration messages to all ZEO clients. 2. The ZEO clients then new to get updated ZCatalog from the server. Does the clients have to get the all of the ZCatalog or just the indexes thats been updated? Does it have to get the whole index or can it just get the updated information? Are there any "pattern/howto" to use when working with Catalog that will optimize for scalability? Regards, Johan Carlsson ___ 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] Stuff hanging off user not in cookies
Hi, small rant (no change there for me ;-) Is there are reason why configuration info for the user doesn't hang off the user object and is instead stored in cookies? I'm thinking of the dimensions/etc of the edit boxes and the like. I do a lot of work through virtual domains and it's a real pain having to resize that edit box every time I log in through a different domain or on a different computer... 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] Stuff hanging off user not in cookies
Is there are reason why configuration info for the user doesn't hang off the user object and is instead stored in cookies? I'm thinking of the dimensions/etc of the edit boxes and the like. I do a lot of work through virtual domains and it's a real pain having to resize that edit box every time I log in through a different domain or on a different computer... Have you looked at the "Better User Management" proposal? One aspect of it is a better level of lowest-common-denominator support for extended attributes. I think that a prerequisite for what you are asking for is a well-defined interface for hanging extended attrs on users that can work reliably (or fail in a well-defined way) for whatever flavor of user source you are using. http://dev.zope.org/Wikis/DevSite/Proposals/BetterUserManagement Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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 can Catalog index all parts/words of a attribute
Hi, I try to use Catalog with a object stored in ZODB3. I need to match single words in attributes in what might be a long string with several words in it. I've tried to set "self.cat.addIndex('name' ,'TextIndex' )" which is supposed to be full text searching at least said to be in the Zope-pages when creating a catalog in Zope. But when I try to search for objects they only return stuff if I enter the entire content of the attribute in question, not parts of it. This is not a Zope-product yet, but a foundation for a future product. I'm working on a full-text searching command-line interface, so nothing of this can be done thru Zopes web-interface at this point. the code has been posted earlier, in "Now; - problems using ZODB/ZCatalog in Python". Any quick hints? Thomas ___ 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] PATCH: Expanded access file
Hm. I don't think this could be classed as a "minor" change, however, since it has impact on ownership, for example. What's the path of the user folder which is above "/", for example? The whole thing is useless if these extra users can't be owners, and the ownership machinery right now wants an access path. I think perhaps we should go the fishbowl route on this, if only to make sure that Jim doesn't have a heart attack when he gets back. :) Looks like I was wrong. This was in fact quite a minor patch. I've only tested this lightly so far, but if anyone else wants to try it out, here it is. Hi all - I think that this is _definitely_ the kind of thing that should be done in the fishbowl on dev.zope.org. Why? Because while it may be a "minor patch" in terms of lines of code, just applying the patch causes a number of problems that have nothing to do with software per se. They are the same problems that I get beaten about on a daily basis for everything that has ever been added to Zope to date :^) They are the problems that dev.zope.org is being designed to solve: o There is no visibility of the reason for the change. What is the problem being solved? How exactly does this solve it? Is it the right solution? Why did we make the decisions we made? Of course some discussion of these has occurred on the dev list, but the only way I (or anyone else) can discover these is to piece things together by searching list archives. o There is no visibility of the impacts of the change. How does this affect ownership? Does this work with all existing user folder objects, or do they all need to change to support it? If they all need to change, shouldn't we make sure that the authors of other implementation generally buy into this? What other issues might there be? Again, we can only scour the list archives :( o This would become Yet Another Undocumented Feature. One of the big things that the dev area is going to do is to force us to assess the documentation impact of changes and ensure that the required documentation is produced and integrated with the appropriate offical or unofficial docs. I can see the expanded access file change potentially having an effect on at least two kinds of documentation (user/admin guides and developer materials regarding how to implement new kinds of user folders). The structure of projects in the dev area is such that a finished project tells a story. What was the problem? What was the solution? How was it done? What documentation or other resources were created as a result? All of those things are available in one place once a project is complete. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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] Problem
Anvita, It's possible you could reuse these components via COM using Mark Hammond's COM stuff for python... this isn't really Zope-specific. See http://www.python.org/windows/win32com/ for more information. -Original Message- From: Anvita [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 25, 2000 2:16 AM To: [EMAIL PROTECTED] Subject: [Zope-dev] Problem Hello Sir, I want to create a portal for indian languages using zope. The problem is that the programms which handles all font related issues or text to speech conversion etc for the site (for Indian Languages) are in C and Visual Basic and the programmes are too lenthy that we cann't rewrite them. Kindly tell me is there any way to use tham with zope. Thanking you, Yours truly, Anvita Bajpai Research Engineer IIT Kanpur - India. ___ 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] ZODB....
Hi, I want to develop an external program that can store and retrieve an Object (such as a Person) in the ZoDB I tried the example that I found in the How to's but it doesn't works In fact, I have the following message : ZODB.FileStorage(file) attribute Error : FileStorage --But I have imported ZODB And, when I try to import ZODB.FileStorage : the program stops with the following message : TypeError : call of non-function type what's wrong ? did Anybody have an example like this... ? Can anybody help me ? ___ 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] PATCH: Expanded access file
At 10:54 AM 7/25/00 -0400, Brian Lloyd wrote: I think that this is _definitely_ the kind of thing that should be done in the fishbowl on dev.zope.org. Why? Because while it may be a "minor patch" in terms of lines of code, just applying the patch causes a number of problems that have nothing to do with software per se. Sorry about that. As you may have seen from the list, I did enquire as to whether this should go in the fishbowl, and was told that such a minor patch probably didn't need it. I thought the issue was more complex than it was also; I was under the impression that Zope had a user folder *above* the official "root", not realizing that it was merely that the "physical root" had a default user folder in existence. What is the problem being solved? How exactly does this solve it? Is it the right solution? Why did we make the decisions we made? Of course some discussion of these has occurred on the dev list, but the only way I (or anyone else) can discover these is to piece things together by searching list archives. Problem being solved: the new ownership model requires a place for ownership to "bottom out" so that user databases themselves can have owners. The previous solution was the creatable-by-super hack, which only created further holes in the ownership model, since user databases which involved components which followed the security model (e.g. GenericUserFolder and LoginManager) then had to suppress ownership characteristics or else be unusable as a root-level user database. Second problem: the initial existence of only a single Zope user who could not actually do anything except create a UserFolder, was troubling to new users of Zope and at best inconvenient for experienced ones. o There is no visibility of the impacts of the change. How does this affect ownership? Does this work with all existing user folder objects, or do they all need to change to support it? * The "rootUsers" can own things * They appear to be normal members of the root UserFolder, except that they do not appear in its contents as they are not stored there. * It is not necessary for a user database to support the rootUsers; however if the top-level user database of a Zope installation does not support them, they will not be usable in that installation. * User databases using the existing name==super.getUserName() protocol are unaffected; they simply will not provide access to the new rootUser objects. * User folder objects must be changed to support the rootUsers dictionary. The patch provides this support for the Zope UserFolder object. In practice, I believe that there is a relatively small (i.e. near-zero) number of publically-available user databases currently in existence which correctly support the Zope 2.2 security model, apart from those developed by DC themselves. Private developers of user databases need only implement the support if they would like the additional feature, and for the rest, I believe this patch should actually make it easier to implement 2.2 support for most such user databases, since they won't need to implement the creatable-by-super protocol or work through ownership issues. o This would become Yet Another Undocumented Feature. One of the big things that the dev area is going to do is to force us to assess the documentation impact of changes and ensure that the required documentation is produced and integrated with the appropriate offical or unofficial docs. I can see the expanded access file change potentially having an effect on at least two kinds of documentation (user/admin guides and developer materials regarding how to implement new kinds of user folders). My assumption was that this feature would actually be easier for DC to document than explaining to someone why they have to log in as superuser, create a user folder, put a user in it, then log out by closing their browser, and then log back in again as that other user in order to start using their Zope installation. My intent was to make both your and my life easier, not more complex. I apologize for any such side effect. :( ___ 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: Probably ZopeFind Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)
Dieter Maurer writes: Jerome Alet writes: Thanks to you, the syntax you gave me is accepted by the dtml parser, but both dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], obj_expr='''not objectValues(['Folder'])''', search_sub=1)" and dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], obj_expr='not objectValues([\'Folder\'])', search_sub=1)" have given me an empty list. I analysed this strange behavior in Zope 2.1.6 and have a partial explanation. Although the permission setting for "objectValues" is "Access contents information" which by default is granted to "Anonymous" and "Manager", only "Manager" is allowed to access "objectValues" in the context of the above "ZopeFind". I could not yet determine, why this is the case. But taken this fact for granted, the behavior becomes clear: the access to "objectValues" results in an "Unauthorized" exception. This is catched but prevents any object from being added to the result list. By now, I know why we get this strange "objectValues__roles__" result inside ZopeFind. In "FindSupport:145", "ZopeFind" strips away the acquisition context of an object. base=obj if hasattr(obj, 'aq_base'): base=obj.aq_base if not hasattr(base, 'objectItems'): return result try:items=base.objectItems() except: return result This, too, removes the information needed for "acl_user" based authorization: In the traversal of the aquisition chain to determine the roles associated with "objectValues", the application object on top of the acquisition hierarchy is not longer reached. Therefore, "ApplicationDefaultPermissions" is not used and "PermissionRole" falls back to its own default "('Manager',)". This acquisition context stripping is almost surely responsible for other problems reported for ZopeFind, too. The behaviour would disappear, if the line try:items=base.objectItems() is replaced by try:items=obj.objectItems() Note: "ZopeFindAndApply" would need the same patch. I am not sure, however, whether this will have adverse effects at other places. I will put a reference to this report into the Collector. Dieter ___ 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 )