Re: [Zope] XUF and Postgres

2005-07-15 Thread Garth B.
For what it's worth, I recently used the SimpleUserFolder for an application that uses Postgres as the backend. It was terrifically easy to implement authentication through Postgres via the SimpleUserFolder. It does exactly what I want without unnecessary frill or complications. Garth On 7/15/

[Zope] Re: How to upload a file and save it in a physical path

2005-07-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Remy Pinsonnault wrote: > Maybe it is a basic question but how can I upload a file and save it > anywhere on the server's hard drive? I know how to upload a file to > zope's database but not how to save it locally... > > Anyone can help please? You m

Re: [Zope] How to upload a file and save it in a physical path

2005-07-15 Thread J Cameron Cooper
Remy Pinsonnault wrote: Maybe it is a basic question but how can I upload a file and save it anywhere on the server's hard drive? I know how to upload a file to zope's database but not how to save it locally... Anyone can help please? There are several products to do this: LocalFS, ExtFile/Ext

[Zope] How to upload a file and save it in a physical path

2005-07-15 Thread Remy Pinsonnault
Maybe it is a basic question but how can I upload a file and save it anywhere on the server's hard drive? I know how to upload a file to zope's database but not how to save it locally... Anyone can help please? Thanks in advance Remy ___ Zope maillist

[Zope] emergency user account does not work

2005-07-15 Thread Tim Suter
After logging out of the ZMI, I have tried to log in as the emergency user by filling in the proper credentials. The page never loads. Could there be a tick I am missing in the security settings for the root folder/ZMI? OR is this something that has to be run via localhost from the server on whi

Re: [Zope] XUF and Postgres

2005-07-15 Thread Dieter Maurer
David Pratt wrote at 2005-7-14 20:30 -0300: >Thanks Dieter. I was really hoping it is a good solution since it is >the only User Folder product for Postgres that I have seen thus far. Chris Withers would tell you, that "Simple User Folder" can do this as well :-) -- Dieter _

[Zope] Re: XUF and Postgres

2005-07-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tino Wildenhain wrote: > Am Freitag, den 15.07.2005, 16:25 +1000 schrieb Andrew Milton: > >>+---[ Tino Wildenhain ]-- >>| Am Donnerstag, den 14.07.2005, 12:46 -0300 schrieb David Pratt: >>| > I am looking at using the ExUserFol

Re: [Zope] dtml to pdf

2005-07-15 Thread Dennis Allison
For simple conversion, you may find htmldoc to be a good choice. Reportlab is a great tool but takes considerable effort; htmldoc gives a "good enough" solution in many cases. On Fri, 15 Jul 2005, Chris Withers wrote: > Allen Huang wrote: > > How do I change my webpage into pdf using dtml or py

Re: [Zope] dtml to pdf

2005-07-15 Thread Chris Withers
Allen Huang wrote: How do I change my webpage into pdf using dtml or python script? Reportlab is your friend. Google might help you find it ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _

Re: [Zope] Product logging to Postgres

2005-07-15 Thread Chris Withers
David Pratt wrote: I am wanting to log a product to postgres database. I want to write to the log from my Script Python methods (in skins) when certain actions occur. The product itself uses a number of zsql methods. Can I import existing zope logging classes in my Script Python to to this or

Re: [Zope] userFolder that holds user's email

2005-07-15 Thread Chris Withers
Peter Bengtsson wrote: Just one python question Chris, why do you do this:: class User(BasicUser): def __init__(self,dict): d['__'] = dict['password'] What's wrong just doing self.__ = dict['password'] I'm not looking at the code as I write this, so I may be wrong, but I do that

Re: [Zope] XUF and Postgres

2005-07-15 Thread Chris Withers
David Pratt wrote: I am looking at using the ExUserFolder with Postgres. Any users of this combination that could share feedback (positive or negative) on how this solution is working for them. Many thanks. You might want to take a look at SimpleUserFolder. It's a lot more light weight that

Re: [Zope] XUF and Postgres

2005-07-15 Thread David Pratt
Thanks Tino and Andrew. This is all useful feedback. Regards, David On Friday, July 15, 2005, at 05:11 AM, Tino Wildenhain wrote: Am Freitag, den 15.07.2005, 16:25 +1000 schrieb Andrew Milton: +---[ Tino Wildenhain ]-- | Am Donnerstag, den 14.07.2005, 12:46 -0300 schri

Re: [Zope] Passing a variable to RESPONSE.redirect

2005-07-15 Thread J Cameron Cooper
Asad Habib wrote: Is it possible to pass a variable to RESPONSE.redirect or does the page name have to be a literal string? I was unable to pass in a variable via the REQUEST object (i.e. REQUEST.get('pageName')) or the SESSION attribute of the REQUEST object (i.e. REQUEST.SESSION.get('pageName')

[Zope] Passing a variable to RESPONSE.redirect

2005-07-15 Thread Asad Habib
Is it possible to pass a variable to RESPONSE.redirect or does the page name have to be a literal string? I was unable to pass in a variable via the REQUEST object (i.e. REQUEST.get('pageName')) or the SESSION attribute of the REQUEST object (i.e. REQUEST.SESSION.get('pageName')). Any help would be

Re: [Zope] XUF and Postgres

2005-07-15 Thread Tino Wildenhain
Am Freitag, den 15.07.2005, 16:25 +1000 schrieb Andrew Milton: > +---[ Tino Wildenhain ]-- > | Am Donnerstag, den 14.07.2005, 12:46 -0300 schrieb David Pratt: > | > I am looking at using the ExUserFolder with Postgres. Any users of > | > this combination that could share f

Re: [Zope] LDAPUSerFolder permission problem

2005-07-15 Thread Jens Vagelpohl
On 14 Jul 2005, at 02:53, Nicholas Watmough wrote: I'm not sure what you mean by a 'wrapped' user. What causes a user to have a wrapper in Zope? I am getting the 'other' user via the following code: user = context.acl_users.getUserById(username) Will this cause the user to be returned with