Re: [Zope] NewBee, Do I have to code to do this?

2006-01-20 Thread John Huttley

Thanks for your help on this. I'll study it up shortly.

Regards,
John
___
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] NewBee, Do I have to code to do this?

2006-01-19 Thread John Huttley

Hi, I'm recoding an existing php e-commerce app in zope as my first project

I'm at the point where I've installed the exUserFolder product to 
authenticate against an external SQL database.


However, I need to hold some additional information in the user object.

It seems to me that I have to change the exUserFolder product code to 
add this to the class.


This seems odd and not very maintainable.

There are brains for sql, I'm wondering if there are better ways for 
doing this?


Any advice gratefully received.

--john

___
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] NewBee, Do I have to code to do this?

2006-01-19 Thread John Huttley

Sorry should have added its zope 2.8 under windows

--john

John Huttley wrote:
Hi, I'm recoding an existing php e-commerce app in zope as my first 
project


I'm at the point where I've installed the exUserFolder product to 
authenticate against an external SQL database.


However, I need to hold some additional information in the user object.

It seems to me that I have to change the exUserFolder product code to 
add this to the class.


This seems odd and not very maintainable.

There are brains for sql, I'm wondering if there are better ways for 
doing this?


Any advice gratefully received.

--john

___
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 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] NewBee, Do I have to code to do this?

2006-01-19 Thread Bakhtiar A Hamid
On 1/20/06, John Huttley [EMAIL PROTECTED] wrote:
Sorry should have added its zope 2.8 under windows--johnJohn Huttley wrote: Hi, I'm recoding an existing php e-commerce app in zope as my first project I'm at the point where I've installed the exUserFolder product to
 authenticate against an external SQL database. However, I need to hold some additional information in the user object. It seems to me that I have to change the exUserFolder product code to
 add this to the class.

check out authentication source. also, check out all the docs in the xuf ta ball. iirc, there's a faq for this..

hth
 This seems odd and not very maintainable. There are brains for sql, I'm wondering if there are better ways for
 doing this? Any advice gratefully received. --john ___ 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 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
 )-- 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] NewBee, Do I have to code to do this?

2006-01-19 Thread David




Bakhtiar A Hamid wrote:

  
  On 1/20/06, John Huttley [EMAIL PROTECTED]
wrote:
  Sorry
should have added its zope 2.8 under windows

--john

John Huttley wrote:
 Hi, I'm recoding an existing php e-commerce app in zope as my first
 project

 I'm at the point where I've installed the exUserFolder product to

 authenticate against an external SQL database.

 However, I need to hold some additional information in the user
object.

 It seems to me that I have to change the exUserFolder product code
to

 add this to the class.

  
  
check out authentication source. also, check out all the docs in the
xuf ta ball. iirc, there's a faq for this..
  
hth
  
  
  
This seems odd and not very maintainable.

 There are brains for sql, I'm wondering if there are better ways
for

 doing this?

 Any advice gratefully received.

 --john

  

I use SimpleUserfolder to authenticatate against postgres. Its easy to
add addional user information. Heres a short version of how this
similar product works:
a) you store authentication data in an SQL table (or anywhere thats
persistent).
b) you write a handful of scripts to satisfy Zope's authentication
machinary (examples are provided).
c) you can obtain additional user information by calling your SQL
tables with userID, eg obtain their phone, fax and socials - or right
after authentication you can stuff the users details into SESSION.


David


David



___
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] NewBee, Do I have to code to do this?

2006-01-19 Thread Andrew Milton
+---[ John Huttley ]--
| 
| Hi, I'm recoding an existing php e-commerce app in zope as my first
| project
|
| I'm at the point where I've installed the exUserFolder product to
| authenticate against an external SQL database.
| 
| However, I need to hold some additional information in the user object.
| 
| It seems to me that I have to change the exUserFolder product code to
| add this to the class.

All you need to do is configure a property source.

You can store properties in the ZODB or in SQL, or pretty much anywhere.

-- 
Andrew Milton
[EMAIL PROTECTED]
___
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 )