Re: [Zope] Re: ZEO and Sessions.

2005-04-15 Thread Bakhtiar A Hamid
On 4/14/05, Richard Jones <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On Wed, 13 Apr 2005 10:21 am, Tres Seaver wrote:
> > Richard Jones wrote:
> > > Yeah, I remember poking around that code way back, and it seemed
> > > reasonable. Its interactions with transactions are the bits that scare
> > > me. Using a standard RDBMS connection would probably solve that though.
> >
> > I revisited the SQLSession product a year ago for a consuling customer,
> > making their hacked version a drop-in replacement for the transient
> > storage.  I can't release their code, but I maybe learned enough then to
> > redo the task as a "PluggableSessions" product, using the
> > "PluginRegistry" product to manage the different requried bits.
> 
> Well, I have a ZSQLSessionDataManager implementation based on the standard
> SessionDataManager with some changes. It appears to work fine when I test our
> application (which makes heavy use of sessions).
> 
> So far the SQL code is geared towards Postgres (and gadfly, I think). It'd
> need some tweaking to work on MySQL ('cos MySQL is *special*) and I'm not
> interested in doing that work ('cos MySQL is *special*).
> 
> http://www.zope.org/Members/richard/ZSQLSessionDataManager
> 

ark!
insufficient priveleges

Insufficient Privileges

You do not have sufficient privileges to view this page.

If you are getting this message when trying to edit your own zope.org
content, remember that you must retract published items before you may
edit them. To retract an item, click on the State link to view the
publishing status form and select "retract" from the publishing
options.

If you believe you are receiving this message in error, please send an
e-mail to [EMAIL PROTECTED]


> Richard
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFCXhkFrGisBEHG6TARAjmiAKCCEa9AH/1l5LGx4py/CHhXb1X7hACfZiYE
> iFsD9cpdZgb8+7NwlVwethY=
> =nVP7
> -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 )
> 


-- 
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 )


[Zope] Re: ZEO and Sessions.

2005-04-15 Thread Michael Haubenwallner
Bakhtiar A Hamid wrote:
On 4/14/05, Richard Jones <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 13 Apr 2005 10:21 am, Tres Seaver wrote:
Richard Jones wrote:
Yeah, I remember poking around that code way back, and it seemed
reasonable. Its interactions with transactions are the bits that scare
me. Using a standard RDBMS connection would probably solve that though.
I revisited the SQLSession product a year ago for a consuling customer,
making their hacked version a drop-in replacement for the transient
storage.  I can't release their code, but I maybe learned enough then to
redo the task as a "PluggableSessions" product, using the
"PluginRegistry" product to manage the different requried bits.
Well, I have a ZSQLSessionDataManager implementation based on the standard
SessionDataManager with some changes. It appears to work fine when I test our
application (which makes heavy use of sessions).
So far the SQL code is geared towards Postgres (and gadfly, I think). It'd
need some tweaking to work on MySQL ('cos MySQL is *special*) and I'm not
interested in doing that work ('cos MySQL is *special*).
http://www.zope.org/Members/richard/ZSQLSessionDataManager

ark!
insufficient priveleges
Works now !
Michael
--
http://zope.org/Members/d2m
http://planetzope.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] Re: ZEO and Sessions.

2005-04-15 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 15 Apr 2005 05:54 pm, Michael Haubenwallner wrote:
> Bakhtiar A Hamid wrote:
> >>>Richard Jones wrote:
> >>http://www.zope.org/Members/richard/ZSQLSessionDataManager
> >
> > ark!
> > insufficient priveleges
>
> Works now !

Well, it does *sometimes*. Whenever I make a new release though, the zope.org 
permissions seem to be screwey and end up giving people an error when they 
try to view the page!

So I made two releases in quick succession today, and whoever manages zope.org 
did get those releases through publication quickly (though again, the page 
came up as an error in the mean time). Unfortunately, an erroneous release I 
made - which I did not mark for publication that I'm aware of, and had a 
meaningless ID - was also published. I've now marked it as retracted (there 
doesn't appear to be any way to *delete* a release), meaning the 
ZSQLSessionDataManager is again inaccessible by regular users. Sigh.


Richard
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCX4aorGisBEHG6TARAhSJAJ4qsrn7hHcc4MP3qftObcQlfF/7LACcCZQe
NIrUvoBbIvplD/s0jZuelLc=
=0gfa
-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] Re: ZEO and Sessions.

2005-04-15 Thread Michael Haubenwallner
Richard Jones wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, 15 Apr 2005 05:54 pm, Michael Haubenwallner wrote:
Bakhtiar A Hamid wrote:
Richard Jones wrote:
http://www.zope.org/Members/richard/ZSQLSessionDataManager
ark!
insufficient priveleges
Works now !

Well, it does *sometimes*. Whenever I make a new release though, the zope.org 
permissions seem to be screwey and end up giving people an error when they 
try to view the page!

So I made two releases in quick succession today, and whoever manages zope.org 
did get those releases through publication quickly (though again, the page 
came up as an error in the mean time). Unfortunately, an erroneous release I 
made - which I did not mark for publication that I'm aware of, and had a 
meaningless ID - was also published. I've now marked it as retracted (there 
doesn't appear to be any way to *delete* a release), meaning the 
ZSQLSessionDataManager is again inaccessible by regular users. Sigh.

Hi Richard,
that is a very old problem with software releases - any 'private' file 
inside the current release blocks the access to the release and only 
folder_contents works for some roles. You can retract the file it is in 
'private' state and you remove it from the folder yourself.
It takes some time for the caches to update too.

Michael
--
http://zope.org/Members/d2m
http://planetzope.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 )


[Zope] Subfolders of Extensions folder

2005-04-15 Thread Vital Lobachevsky
Hi, all!
Can I use the folders in Zope's "Extensions" folder to keep the External 
Methods in more logical way?

--
-tick
___
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] Subfolders of Extensions folder

2005-04-15 Thread Jens Vagelpohl
On Apr 15, 2005, at 12:40, Vital Lobachevsky wrote:
Hi, all!
Can I use the folders in Zope's "Extensions" folder to keep the 
External Methods in more logical way?
No, I think they all need to be at the toplevel directory.
If you have too many external methods you should be writing a Python 
Zope product to store that logic.

jens
___
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] Subfolders of Extensions folder

2005-04-15 Thread Tino Wildenhain
Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky:
> Hi, all!
> 
> Can I use the folders in Zope's "Extensions" folder to keep the External 
> Methods in more logical way?

iirc you can just create a directory
in Products and put your methods there.
You can then import it from here.

try with or without __init__.py in that
directory (can be empty)

and Products.yourproduct.yourmodule

as module name.

___
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] [Zope/DTML] accessing PARENTS url with dtml tag ???

2005-04-15 Thread BonviciniJ
I have found a similar problem at this url:
http://mail.zope.org/pipermail/zope/2000-August/115809.html

I want to do the same a Kapil, but in DTML.
I tried different solutions:
1)
2)

but I still have the problem.
I wannt to display (in DTML) the absolute URL of the parent, but it doesn't 
work: 
it displays the absolute url of the CURRENT object.

could you help me to find the solution please?

thanks (and excuse for my lack in english)




___
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] [Zope/DTML] accessing PARENTS url with dtml tag ???

2005-04-15 Thread Cliff Ford
Try this construction:
Object:  url: 


Cliff
[EMAIL PROTECTED] wrote:
I have found a similar problem at this url:
http://mail.zope.org/pipermail/zope/2000-August/115809.html
I want to do the same a Kapil, but in DTML.
I tried different solutions:
1)
2)
but I still have the problem.
I wannt to display (in DTML) the absolute URL of the parent, but it doesn't work: 
it displays the absolute url of the CURRENT object.

could you help me to find the solution please?
thanks (and excuse for my lack in english)

___
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] [Zope/DTML] accessing PARENTS url with dtml tag ???

2005-04-15 Thread BonviciniJ
thanks a lot for your help,
it works perfectly

-original message--
Try this construction:

Object:  url: 


Cliff

BonviciniJ at keops.net  wrote:
> I have found a similar problem at this url:
>  
> 
> I want to do the same a Kapil, but in DTML.
> I tried different solutions:
> 1)
> 2)
> 
> but I still have the problem.
> I wannt to display (in DTML) the absolute URL of the parent, but it doesn't 
> work: 
> it displays the absolute url of the CURRENT object.
> 
> could you help me to find the solution please?
> 
> thanks (and excuse for my lack in english)
> 

___
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] Re: Subfolders of Extensions folder

2005-04-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tino Wildenhain wrote:
> Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky:
> 
>>Hi, all!
>>
>>Can I use the folders in Zope's "Extensions" folder to keep the External 
>>Methods in more logical way?
> 
> 
> iirc you can just create a directory
> in Products and put your methods there.
> You can then import it from here.
> 
> try with or without __init__.py in that
> directory (can be empty)
> 
> and Products.yourproduct.yourmodule

I don't think the 'Products.' prefix should be there (at least, I never
use it for "standard" products' EMs).

Tres.
- --
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  "Zope Dealers"   http://www.zope.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCX9KvGqWXf00rNCgRAnc8AJ9QTseqTWO9hMwgOoyI18sJrOTG5QCgmEYa
qFfaGl/xE5nYiNFuodbVNVo=
=Wfx3
-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] Re: Subfolders of Extensions folder

2005-04-15 Thread Tino Wildenhain
Am Freitag, den 15.04.2005, 10:41 -0400 schrieb Tres Seaver:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Tino Wildenhain wrote:
> > Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky:
> > 
> >>Hi, all!
> >>
> >>Can I use the folders in Zope's "Extensions" folder to keep the External 
> >>Methods in more logical way?
> > 
> > 
> > iirc you can just create a directory
> > in Products and put your methods there.
> > You can then import it from here.
> > 
> > try with or without __init__.py in that
> > directory (can be empty)
> > 
> > and Products.yourproduct.yourmodule
> 
> I don't think the 'Products.' prefix should be there (at least, I never
> use it for "standard" products' EMs).
> 

Yes maybe. It was untested and to be fully explorated by
the reader :-)

Regards
Tino

___
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] Using USB smart token with Apache-enabled Zope web site

2005-04-15 Thread Rich3800



I would like to create a collaborative environment where people would work 
on Blender files (among other file types) with yet unknown parties and 
enforce 2-way authenticated access to the Zope web site with smart tokens. I 
want also manage the Zope web site from behind my NAT router.  How do I go 
about this?
___
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 )