[Zope-dev] Zope Tests: 7 OK
Summary of messages to the zope-tests list. Period Thu Jan 4 12:00:00 2007 UTC to Fri Jan 5 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Jan 4 21:08:47 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006971.html Subject: OK : Zope-2.6 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Jan 4 21:10:17 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006972.html Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Jan 4 21:11:47 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006973.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Jan 4 21:13:18 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006974.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Jan 4 21:14:48 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006975.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Jan 4 21:16:18 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006976.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Jan 4 21:17:48 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006977.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 )
Re: Re: [Zope] Limit size download file in Zope wih LocalFS
Thanks Andrea for your attention. Not clear error message. If I try to download a file bigger than 128 kb, I got a smaller file and when I 'cat' it I got the 'object' (like open file '/scratch/ccpngrid/JOBS/PDBS_all.pdb', mode 'rb' at 0x323c7558) Playing with the browser mode of LocalFS (tab 'View' in ZMI) I can upload big files but I get the same problem as above when downloading. The first thing I did was to ask to our server administrator and so far she told me nothing was done but migrating our portal to apache, yet she pointed out the fact that everything else is working but LocalFS, then the likely culprit is LocalFS... Anyway, it was working before... Cheers, Alan On 04/01/07, Andreas Jung [EMAIL PROTECTED] wrote: - --On 4. Januar 2007 17:52:07 + Alan [EMAIL PROTECTED] wrote: Hi List! I got a problem. I found out that any file located in a LocalFS folder bigger than 128 Kb (precisely 131071 bytes) cannot be download from zope portal since the administrator move it over apache. I mean, I can download a pdf file of 8 Mb from Plone, but I cannot download any file from a LocalFS area bigger than the value above. Any particular error message? Your administrator might have limited the size for POST requests? - -aj -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ 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: Re: [Zope] Limit size download file in Zope wih LocalFS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How to reproduce with a bare Zope instance with LocalFS installed? - --On 5. Januar 2007 10:32:39 + Alan [EMAIL PROTECTED] wrote: Thanks Andrea for your attention. Not clear error message. If I try to download a file bigger than 128 kb, I got a smaller file and when I 'cat' it I got the 'object' (like open file '/scratch/ccpngrid/JOBS/PDBS_all.pdb', mode 'rb' at 0x323c7558) This indicates that you're trying to access something that you should. Please explain *carefully* what you are doing. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) iD8DBQFFnizVCJIWIbr9KYwRAkrlAJ9w0jUKtPHVAJUKE1jrJFLEe78KhgCeOdRm ribsLY6YmkytriUteARmMoQ= =C3/v -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] Make folder's default view the contents of an item based on latest date
Praful, Quills (a webblog Product for Zope/Plone) works something like that. Perhaps you should take a look through its source code for clues as how to implement your archival mechanism? Best wishes, Matthew -- Rogues are very keen in their profession, and know already much more than we can teach them. - A. C. Hobbs in _Locks and Safes_ (1853) ___ 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] LDAPUserFolder Question
Hi, I have LDAPUserFolder 2.6 on Zope 2.9.5-Final. Everything is working as expected, but there is one thing I'm not clear on. I've added uid as User ID to the LDAP Schema, and am using it as the Login Name Attribute. The authentication works flawlessly. Under User ID Attribute I have Canonical Name (cn). That should be returning the full name of the user. However when I use something like: dtml-call expr=REQUEST.set( 'User_Name',REQUEST.AUTHENTICATED_USER.getUserName()) I get the uid and not the cn. Any idea how I can get the cn? Thanks, Sean ___ 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] LDAPUserFolder Question
dtml-call expr=REQUEST.set( 'User_Name',REQUEST.AUTHENTICATED_USER.getUserName()) I get the uid and not the cn. Any idea how I can get the cn? Maybe: REQUEST.AUTHENTICATED_USER.getUserDN() ? Take a look into LDAPUser.py -- Maciej Wisniowski ___ 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] LDAPUserFolder Question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6 Jan 2007, at 00:42, Maciej Wisniowski wrote: dtml-call expr=REQUEST.set ( 'User_Name',REQUEST.AUTHENTICATED_USER.getUserName()) I get the uid and not the cn. Any idea how I can get the cn? Maybe: REQUEST.AUTHENTICATED_USER.getUserDN() ? Take a look into LDAPUser.py getUserDN wont return the cn attribute, it will return the full distinguished name ;) You can use user_object.getProperty('cn'). jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFnuYlRAx5nvEhZLIRAiv6AKCmNcKbE1D1bRGCvaGwxBGMS5e9xACgspCj P5StEDSIobv5O62Cq/fi4OU= =ExJy -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 )
[Zope] all_meta_types confusion
Hey everyone, Zope 2.9.6 I'm trying to filter the objects that appear in the Add drop down, and I'm having odd results. There are two scenarios. In the first scenario, the active user is a Manager and my folderish object does not have a defined all_meta_types function. Everything shows up in the Add drop down as expected. When I define all_meta_types for my folderish object to only return one kind of object, the Add x button appears as one would expect. In the second scenario, I have a role Editor which controls what kinds of objects the user can add. When I do not have an all_meta_types function defined on my folderish object, only those objects that the role permits the user to add are shown. When I define all_meta_types for my folderish object to only return one of the kinds of objects that the role does permit, the user can't add anything. No Add x button that one would normally see when only able to add a single type of object to a folderish object. For the same type of object, and when logged in as an Editor, the call to user.has_permission() (around line 254) in filtered_meta_types() in ObjectManager.py, returns false when all_meta_types is defined, and returns true when it isn't. I don't know why the user would not have permission to add this type of object when all_meta_types is defined versus when it isn't. This is why I'm confused. No errors or exceptions. So, in summary, when I don't have all_meta_types defined for my folderish object, the five types of objects the role is permitted to add is shown in the Add drop down. When I set all_meta_types to only permit one of those five types of objects to be added, the user can't add anything. A user with the Manager role doesn't appear to have this problem. Any suggestions for what's going on here? Any insights are appreciated! Thank you, Garth ___ 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-DB] Basic tsql example using MxODBC Zope DA adaptor?
Please, stay on zope-db list :) Thank you for your assistance. I plugged in the new code, using the example you forwarded, and everything seems to work fine, without errors,and navigates to my results-page. The problem, however, is that nothing changes in the DB. It is not possible (at last in easy way) to look into mxODBC code so I'm not sure how it's API is... Instead of commit and rollback try to call: _finish() - to commit abort() or _abort() - to rollback. It may be necessary to call these functions from external method (not from Script (Python)) because you'll get unauthorized exception. These are functions of Zope transaction managers (lib/python/Shared/ZRDB/DC/TM.py). Typically (so I suppose mxODBC does this too), call to Database Adapter object like: mxODBCDatabaseConnection() returns transation manager. Transaction manager holds real database connection object and is able to call commit or rollback on it. Have you read pdf files that are available with mxOdbc? Maybe you'll find some clues there. Should mxODBCDatabaseConnection() be my actual DB adaptor or should it be a method used to call it? DB adapter In fact you may also use direct python mxODBC API without any mxODBCZopeDA features (there are examples in mxODBC docs). Just write a python script (without zope) that does what you need and then plug it into Zope as external method (or product). -- Maciej Wisniowski Maciej, Thank you for your assistance. I plugged in the new code, using the example you forwarded, and everything seems to work fine, without errors, and navigates to my results-page. The problem, however, is that nothing changes in the DB. Should mxODBCDatabaseConnection() be my actual DB adaptor or should it be a method used to call it? Also, if it should be a separate method, would I want to use a Controller Python Script if I am trying to call it from a form? Thank you and Best Regards, Chris Nethery ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db