Re: [Zope] FSSession used in Python???

2000-07-10 Thread Pavlos Christoforou

On Fri, 7 Jul 2000, Dan Narkiewicz wrote:

 inside my own python written Zope product... Any help would be.. well... 
 helpful..

I am not sure if it is a good idea to use a Product in the manner you
describe but in any case:

   --- a class definition ---
 def FStest(self):
 """fssession test"""
 self.a = FSSession()    error appears here


FSSession needs to be initialized with a cookie name, (whatever one wants
to call the cookie that will store the session id). 

self.a=FSSession('Danssession')

Still it might not work if FSSession cannot access REQUEST etc. Let me
know.

Pavlos




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] FSSession used in Python???

2000-07-07 Thread Dan Narkiewicz

I want to write my own Product in python that uses FSSession to store a very 
minimum amount of information... For the life of me i cannot figure out how 
to correctly create an instance of an FSSession that can be manipulated 
inside my own python written Zope product... Any help would be.. well... 
helpful..

At the moment the code looks somethign like this:


-Start Python code-
from Products.FSSession.FSSession import FSSession

  --- a class definition ---
def FStest(self):
"""fssession test"""
self.a = FSSession()    error appears here
self.a.set('hey','there')
return 'done'
--End Python code--

-Start DTML---
dtml-var "Zope_object_name.test()"
-End DTML---


The error

Error Type: TypeError
Error Value: not enough arguments; expected 2, got 1





Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )