Re: [Zope] auto login user

2009-04-30 Thread Jonathan (dev101)
If you are using a form-processor routine (ie. some routine which examines 
login id/pwd entered by user on a form), then you could send the "demo-ee" a 
link,  which contains the id/pwd as url parameters, and directly calls the 
form processor routine.


- Original Message - 
From: 
To: 
Sent: Thursday, April 30, 2009 7:14 AM
Subject: [Zope] auto login user


> How could I automatically/programmatically log in an existing user when 
> anyone
> visits a zope site? I am doing this because I want to demo an application 
> on
> the web without needing a login. I am using an authenticated user in the
> application to retrieve data from a database that is specific to that 
> user.
> Regards
> Garry
> ___
> 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 )
>






No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.12.8/2086 - Release Date: 04/29/09 
06:37:00

___
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] auto login user

2009-04-30 Thread Jaroslav Lukesh
use proxy role

- Original Message - 
From: 


> How could I automatically/programmatically log in an existing user when 
> anyone
> visits a zope site? I am doing this because I want to demo an application 
> on
> the web without needing a login. I am using an authenticated user in the
> application to retrieve data from a database that is specific to that 
> user.

___
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] auto login user

2009-04-30 Thread garry
How could I automatically/programmatically log in an existing user when anyone
visits a zope site? I am doing this because I want to demo an application on
the web without needing a login. I am using an authenticated user in the
application to retrieve data from a database that is specific to that user.
Regards
Garry
___
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] zope2, buildout and relstorage

2009-04-30 Thread Rowan Woodhouse
Jürgen Herrmann wrote:
> i want to use relstorage with zope 2.10 and have read about the
> "fake egg" procedure at http://pypi.python.org/pypi/plone.recipe.zope2install
> 
> is there any documentation how to use that recipe? i tried
> downloading and unpacking from
> http://pypi.python.org/packages/source/p/plone.recipe.zope2install/
> but i'm, a bit lost there. from the readme i read that i should run
> "python2.4 bootstrap.py" first, and then? obviously the shipped
> buildout.cfg puts a zope2 source tree in parts/zope2 after running
> bin/buildout. the "eggs" dir contains:
>   plone.recipe.zope~all-3.0-py2.4.egg
>   setuptools-0.6c9-py2.4.egg
>   zc.buildout-1.2.1-py2.4.egg
> and fake-eggs has:
>   Acquisition/   zope.app.renderer/
>   ClientForm/zope.app.rotterdam/
>   DateTime/  zope.app.schema/
>   docutils/  zope.app.security/
>   ExtensionClass/zope.app.servicenames/
>   mechanize/ zope.app.session/
>   Persistence/   zope.app.site/
>   pytz/  zope.app.size/
>   RestrictedPython/  zope.app.skins/
>   tempstorage/   zope.app.sqlscript/
>   ZConfig/   zope.app.testing/
>   zdaemon/   zope.app.tests/
>   zLOG/  zope.app.timezones/
>   ZODB3/ zope.app.traversing/
>   zodbcode/  zope.app.tree/
>   Zope2/ zope.app.undo/
>   zope.annotation/   zope.app.wfmc/
>   zope.app/  zope.app.wsgi/
>   zope.app.annotation/   zope.app.zapi/
>   zope.app.apidoc/   zope.app.zopeappgenerations/
>   zope.app.applicationcontrol/   zope.app.zptpage/
>   zope.app.appsetup/ zope.cachedescriptors/
>   zope.app.authentication/   zope.component/
>   zope.app.basicskin/zope.configuration/
>   zope.app.broken/   zope.contentprovider/
>   zope.app.cache/zope.contenttype/
>   zope.app.component/zope.copypastemove/
>   zope.app.container/zope.datetime/
>   zope.app.content/  zope.decorator/
>   zope.app.content_types/zope.deferredimport/
>   zope.app.copypastemove/zope.deprecation/
>   zope.app.datetimeutils/zope.documenttemplate/
>   zope.app.debug/zope.dottedname/
>   zope.app.decorator/zope.dublincore/
>   zope.app.dependable/   zope.event/
>   zope.app.dtmlpage/ zope.exceptions/
>   zope.app.dublincore/   zope.filerepresentation/
>   zope.app.error/zope.formlib/
>   zope.app.event/zope.hookable/
>   zope.app.exception/zope.i18n/
>   zope.app.file/ zope.i18nmessageid/
>   zope.app.filerepresentation/   zope.index/
>   zope.app.folder/   zope.interface/
>   zope.app.form/ zope.lifecycleevent/
>   zope.app.ftests/   zope.location/
>   zope.app.generations/  zope.modulealias/
>   zope.app.http/ zope.pagetemplate/
>   zope.app.i18n/ zope.proxy/
>   zope.app.interface/zope.publisher/
>   zope.app.intid/zope.rdb/
>   zope.app.introspector/ zope.schema/
>   zope.app.keyreference/ zope.security/
>   zope.app.layers/   zope.sendmail/
>   zope.app.locales/  zope.server/
>   zope.app.location/ zope.size/
>   zope.app.mail/ zope.structuredtext/
>   zope.app.onlinehelp/   zope.tal/
>   zope.app.pagetemplate/ zope.tales/
>   zope.app.preference/   zope.testbrowser/
>   zope.app.preview/  zope.testing/
>   zope.app.principalannotation/  zope.thread/
>   zope.app.publication/  zope.traversing/
>   zope.app.publisher/zope.viewlet/
>   zope.app.rdb/  zope.wfmc/
> 
> how do i move forward from here? how to use that source tree and
> how to install relstorage into it?
> 
> thanks in advance and best regards!
> 
> jürgen
> --
>>> XLhost.de - eXperts in Linux hosting ® <<
> 
> XLhost.de GmbH
> Jürgen Herrmann, Geschäftsführer
> Boelckestrasse 21, 93051 Regensburg, Germany
> 
> Geschäftsführer: Volker Geith, Jürgen Herrmann
> Registriert unter: HRB9918
> Umsatzsteuer-Identifikationsnummer: DE245931218
> 
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)700 XLHOSTDE [0700 95467833]
> 
> WEB:  http://www.XLhost.de
> IRC:  #xlh...@irc.quakenet.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 )
> 

Hi, below is my buildout.cfg that I use for relstorage and Plone 
(plon

[Zope] zope2, buildout and relstorage

2009-04-30 Thread Jürgen Herrmann
i want to use relstorage with zope 2.10 and have read about the
"fake egg" procedure at http://pypi.python.org/pypi/plone.recipe.zope2install

is there any documentation how to use that recipe? i tried
downloading and unpacking from
http://pypi.python.org/packages/source/p/plone.recipe.zope2install/
but i'm, a bit lost there. from the readme i read that i should run
"python2.4 bootstrap.py" first, and then? obviously the shipped
buildout.cfg puts a zope2 source tree in parts/zope2 after running
bin/buildout. the "eggs" dir contains:
  plone.recipe.zope~all-3.0-py2.4.egg
  setuptools-0.6c9-py2.4.egg
  zc.buildout-1.2.1-py2.4.egg
and fake-eggs has:
  Acquisition/   zope.app.renderer/
  ClientForm/zope.app.rotterdam/
  DateTime/  zope.app.schema/
  docutils/  zope.app.security/
  ExtensionClass/zope.app.servicenames/
  mechanize/ zope.app.session/
  Persistence/   zope.app.site/
  pytz/  zope.app.size/
  RestrictedPython/  zope.app.skins/
  tempstorage/   zope.app.sqlscript/
  ZConfig/   zope.app.testing/
  zdaemon/   zope.app.tests/
  zLOG/  zope.app.timezones/
  ZODB3/ zope.app.traversing/
  zodbcode/  zope.app.tree/
  Zope2/ zope.app.undo/
  zope.annotation/   zope.app.wfmc/
  zope.app/  zope.app.wsgi/
  zope.app.annotation/   zope.app.zapi/
  zope.app.apidoc/   zope.app.zopeappgenerations/
  zope.app.applicationcontrol/   zope.app.zptpage/
  zope.app.appsetup/ zope.cachedescriptors/
  zope.app.authentication/   zope.component/
  zope.app.basicskin/zope.configuration/
  zope.app.broken/   zope.contentprovider/
  zope.app.cache/zope.contenttype/
  zope.app.component/zope.copypastemove/
  zope.app.container/zope.datetime/
  zope.app.content/  zope.decorator/
  zope.app.content_types/zope.deferredimport/
  zope.app.copypastemove/zope.deprecation/
  zope.app.datetimeutils/zope.documenttemplate/
  zope.app.debug/zope.dottedname/
  zope.app.decorator/zope.dublincore/
  zope.app.dependable/   zope.event/
  zope.app.dtmlpage/ zope.exceptions/
  zope.app.dublincore/   zope.filerepresentation/
  zope.app.error/zope.formlib/
  zope.app.event/zope.hookable/
  zope.app.exception/zope.i18n/
  zope.app.file/ zope.i18nmessageid/
  zope.app.filerepresentation/   zope.index/
  zope.app.folder/   zope.interface/
  zope.app.form/ zope.lifecycleevent/
  zope.app.ftests/   zope.location/
  zope.app.generations/  zope.modulealias/
  zope.app.http/ zope.pagetemplate/
  zope.app.i18n/ zope.proxy/
  zope.app.interface/zope.publisher/
  zope.app.intid/zope.rdb/
  zope.app.introspector/ zope.schema/
  zope.app.keyreference/ zope.security/
  zope.app.layers/   zope.sendmail/
  zope.app.locales/  zope.server/
  zope.app.location/ zope.size/
  zope.app.mail/ zope.structuredtext/
  zope.app.onlinehelp/   zope.tal/
  zope.app.pagetemplate/ zope.tales/
  zope.app.preference/   zope.testbrowser/
  zope.app.preview/  zope.testing/
  zope.app.principalannotation/  zope.thread/
  zope.app.publication/  zope.traversing/
  zope.app.publisher/zope.viewlet/
  zope.app.rdb/  zope.wfmc/

how do i move forward from here? how to use that source tree and
how to install relstorage into it?

thanks in advance and best regards!

jürgen
--
>> XLhost.de - eXperts in Linux hosting ® <<

XLhost.de GmbH
Jürgen Herrmann, Geschäftsführer
Boelckestrasse 21, 93051 Regensburg, Germany

Geschäftsführer: Volker Geith, Jürgen Herrmann
Registriert unter: HRB9918
Umsatzsteuer-Identifikationsnummer: DE245931218

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)700 XLHOSTDE [0700 95467833]

WEB:  http://www.XLhost.de
IRC:  #xlh...@irc.quakenet.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 )