[Zope] Access Rule getUserName problem

2006-08-24 Thread Josh Burvill
Hello,I have this script (see below) set as an access rule for a folder. When it is run directly it prints out the correct user. But when it runs indirectly as an access rule (ie when accessing some other object in the folder, the user is always Anonymous User. I am using Zope 2.8.6-final, python

[Zope] LocalFS - user needs to be manager?

2006-09-20 Thread Josh Burvill
Hi all,I am experiencing an odd situation where if a user does not have manager role, he/she cannot browse a localfs object.I think it can't be a filesystem permissions or zope process os user problem because if the zope user has the manager role, there is no problem. I can't see anything in the

Re: [Zope] LocalFS - user needs to be manager?

2006-09-20 Thread Josh Burvill
On 21/09/06, David H [EMAIL PROTECTED] wrote: Josh Burvill wrote: Hi all, I am experiencing an odd situation where if a user does not have manager role, he/she cannot browse a localfs object. I think it can't be a filesystem permissions or zope process os user problem because if the zope user has

Re: [Zope] LocalFS - user needs to be manager?

2006-09-22 Thread Josh Burvill
pythonverbose-security on Jonathan - Original Message - From: Josh Burvill To: David H Cc: zope@zope.org Sent: Wednesday, September 20, 2006 10:04 PM Subject: Re: [Zope] LocalFS - user needs to be manager? On 21/09/06, David H [EMAIL PROTECTED] wrote: Josh Burvill wrote: Hi all, I am

Re: [Zope] automated object exporting

2006-09-27 Thread Josh Burvill
Or in windows, do a similar thing using a scheduled task and wget (from cygwin) to invoke manage_exportObject with the options you want.Josh On 28/09/06, Jonathan [EMAIL PROTECTED] wrote: If you are in a *nix environment i would suggest investigating 'cron' and using the

Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Josh Burvill
there is some info in zopebook 2.6 edition in the advanced scripting chapter:http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx where there are some links in this chapter where it mentions activestate:

Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Josh Burvill
Sorry, just noticed thats already been considered...On 04/10/06, Josh Burvill [EMAIL PROTECTED] wrote: there is some info in zopebook 2.6 edition in the advanced scripting chapter: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx where there are some links

[Zope] How can I get all roles defined

2007-03-22 Thread Josh Burvill
Hi everyone, I need to get all the roles that are defined in the security tab of a particular folder. I know how to get all roles that a user has got, but cannot find the above. Thanks, Josh ___ Zope maillist - Zope@zope.org

Re: [Zope] Re: How can I get all roles defined

2007-03-22 Thread Josh Burvill
: get_local_roles and valid_roles I'm probably not using the right method, or doing something wrong. Any further tips? Thanks, Josh On 23/03/07, Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh Burvill wrote: Hi everyone, I need to get all the roles

Re: [Zope] Re: [Zope-DB] case insensitive ZSQL queries

2007-09-06 Thread Josh Burvill
Providing your database has the upper() function, or replace with similar select ... dtml-sqlgroup where dtml-if firstname upper(firstname) like upper(dtml-sqlvar firstname type=string) /dtml-if dtml-or dtml-if lastname upper(lastname) like upper(dtml-sqlvar lastname

Re: [Zope] calling javascript method from dtml method

2009-03-15 Thread Josh Burvill
Just put a dtml-var x where x is a dtml document with your javascript in it. Even though it should be in the header it still seems to work 2009/3/15 Dvir Bar-lev dvi...@puresight.com Hi Is there any way to call a javascript method from a dtml method somewhere in the body of it? The

[Zope] identity values from sql server , mxodbc da

2010-04-21 Thread Josh Burvill
Hi I am using zope 2.8.11 I am using mxodbc da to connect to sql server and I was wondering what is the best way to get the new value of the primary key (an identity field) after inserting. It looks like there are 3 slightly different functions I could use: SCOPE_IDENTITY, IDENT_CURRENT, and