[Zope-dev] [Zope] WebDAV/Excel readonly problem

2004-09-16 Thread Dirksen
Hi,

I want to open and edit a file (living on Zope) in Excel through WedDAV. But the 
problem
is whenever I open the file, it's always marked as read-only, even though I'm logging 
in
as the manager role (I use http://username:[EMAIL PROTECTED]/file as the open link). I
test this in the OpenOffice Spreadsheet as well, and the result is the same: it opens 
it
as read-only through WebDAV. My zope is Zope 2.6.4. Anyone has an idea how to solve 
this
problem?

Thanks
Dirksen



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Folderish object's __call__ fails

2004-03-04 Thread Dirksen
Hi,

I'm developing a product, which extends ObjectManager. Meanwhile, I'd like it to behave
like a script object, similar to DTML method. So I define a __call__ method. But it 
never
gets run if called from the browser. If I change the base class to SimpleItem, it 
works.
How can I make __call__ works for folderish object?

cheers
Dirksen

__
Do you Yahoo!?
Yahoo! Search - Find what youÂ’re looking for faster
http://search.yahoo.com

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


[Zope-dev] What's the use of defining permissions for ZClass definition

2001-02-22 Thread Dirksen

Hi,

ZClass definition has a 'Define Permissions' tab. Yet any modification there doesn't 
seem
to affect the ZClass instance's security profile at all. What's the use of that?

Cheers
Dirksen

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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



[Zope-dev] Unable to clear proxy roles in Zope 2.3.0

2001-01-28 Thread Dirksen

In Zope 2.2.x, one can clear the proxy roles for one method by unseleting all proxy
roles. In Zope 2.3.0, this lets to this error: You must select one or more proxy roles.
Is it a bug, or is it done in a different fashion?

cheers
Dirksen

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

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




[Zope] Python Script unable to response to DTML method calls

2001-01-17 Thread Dirksen

I have a python script 'func' that has 'self' as the parameter. When I call it with:
dtml-var func
I got this error: not enough arguments; expected 1, got 0. That means the dtml call
dosen't provide for the 'self' parameter as it would for other dtml methods or python
methods(I rewrote 'func' in python method, and things work out!)

I need to call python scripts that way (for I didn't write that dtml method), how can I
do that or I have to write everything in python methods?

Dirksen

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.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 )




Re: [Zope] Re-posted - How to delete users in Membership product with Persistent User Source

2001-01-15 Thread Dirksen

The delUserForm calls 'deleteInstances' to do the job, yet 'deleteInstances' is not
provided with the product, instead 'manage_deleteUsers' is. When I change
'deleteInstances' to 'manage_deleteUsers' in the code of delUserForm, things work out.

Bill, it's probably a bug :)

cheers
Dirksen

--- Bill Anderson [EMAIL PROTECTED] wrote:
 Kamon Ayeva wrote:
 
  Hi,
  
  Has anyone been able to use the delUserForm to delete
  users added within a PersistentUserSource in the
  PortalMembershipSystem object ?
 
 Yes, quite frequently.
 
 
  I am not sure if this piece of code in delUserForm
  preceding the HTML form snippet does the right job:
  
  dtml-let idList="[]"
  dtml-in "UserSource.getPersistentItemIDs()" sort
  dtml-call
  "idList.append(getItem(_['sequence-item']))"
  /dtml-in
  
  dtml-in idList sort=Importance reverse
  ...
  
  I can view the users but when I click on the form
  button to delete some users, I get
  
  I get 
  
  Error Type: NotFound
  Error Value: None
 
 
 What platform?
 What Zope version?
 What version of each related/required product?
 Is SiteAcces Installed?
 If So, what version?
 
 
 
 ___
 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 )
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.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 )




Re: [Zope] Calling other frames

2001-01-14 Thread Dirksen

Hi Etienne,

First of all, I don't think you can achieve that with javascript. As far as I know,
neither IE nor Netscape allows javascript to access DOM objects of other frame page for
security reasons.

Therefore, to do it at backend is a good solution. Session is the thing you want.
Unfortunately, zope doesn't have session management built in, but you can find a bunch 
of
session management products in zope's download page.

cheers
Dirksen

--- Etienne  Labuschagne [EMAIL PROTECTED] wrote:
 Hi there
 
 I have a navigation/sitemap object that shows the user where he is in the
 website at the current moment.  I want this object eg. to sit in the left
 frame.  This object must update every time the main (right) frame updates to
 reflect the position of the right frame.  The website can be navigated both
 from this navigation/sitemap object or from links inside the website itself.
 Thus, the object must also update itself even if it is not used as the means
 to navigate the site.
 
 How do I "talk" to objects in other frames? Or is there a better way to do
 this? 
 
 I know that this can probably be done with Javascript, but would prefer to
 use Zope as far as I can.
 
 Thanks!
 Etienne
 
 Tel: (012) 348 4586
 Cel: 082 442 8981
 Fax: (012) 361 8355
 
 
 ___
 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 )
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.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 )




[Zope] How to call 'inheritedAttribute' in ZClass dtml method

2001-01-12 Thread Dirksen

'testb' subclasses 'testa', and wants to call 'testa.do()' in one of its dtml method. I
found in zope's source codes that zope tackles this with
"testb.inheritedAttribute('do')()". Yet this doesn't work in zclass dtml method. The
system complains not knowing 'testb'. How to refer to its zclass name? Any other ways 
for
a zclass to call its base class's method? Please help!

Dirksen

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.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 )




[Zope] [Skinscript] unable to update property

2001-01-12 Thread Dirksen

Hi Steve,

I ran into a very tricky problem when developing a site with emarket. Here is the
structure of my site:

root
 |--acl_users(Membership product)
 |--emarket
 |--shoppers

The acl_users is an instance of Membership product, which is as a specialist as 
shoppers,
and they both have a WebIC_MemberClass zclass as their rack object class. The 
difference
is that, acl_users stores WebIC_MemberClass persistently, while shoppers just reflects
that storage. Here is the skinscript for shopper's rack:

WITH acl_users.getItem(self.id) COMPUTE
 oo=RESULT

WITH self.oo COMPUTE
 email,
 transCount

WHEN OBJECT CHANGED STORE transCount USING 
 self.oo.propertysheets.webic.manage_changeProperties(transCount=self.transCount)

When emarket trying to increment a shopper's transCount, I ran into a
"ZODB.POSException.ConflictError". The following is the traceback:
Traceback (innermost last):
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 195, in publish
  File C:\WebSite\lib\python\Zope\__init__.py, line 188, in zpublisher_exception_hook
(Object: ProviderContainer)
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 175, in publish
  File C:\WebSite\lib\python\Zope\__init__.py, line 235, in commit
  File C:\WebSite\lib\python\ZODB\Transaction.py, line 251, in commit
  File C:\WebSite\lib\python\ZODB\Connection.py, line 351, in commit
(Info: (('*hdVMVCvgk/wIgJaYf/nkEA==', 'WebIC_MemberClass'),
'\000\000\000\000\000\000d\357', ''))
  File C:\WebSite\lib\python\ZODB\FileStorage.py, line 664, in store
(Object: C:\WebSite/var/Data.fs)
ConflictError: ('\0039\323C4=\266\210', '\0039\323B\375\036\270U')

Is it something wrong with my skinscript?

cheers
Dirksen



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.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 )




[Zope-dev] How does a subclass call its ancestor's method in zope?

2001-01-11 Thread Dirksen

Here is a ZClass testa, with a dtml method 'do'. Its subclass testb
overrides do. How does testb call its ancestor's 'do'? In python, it can be done as
'testa.do()', but what's the equivallent in zope? 

Dirksen


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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




[Zope-dev] How does a subclass call its ancestor's method in zope?

2001-01-10 Thread Dirksen

Here is a ZClass testa, with a dtml method 'do'. Its subclass testb
overrides do. How does testb call its ancestor's 'do'? In python, it can be done as
'testa.do()', but what's the equivallent in zope? 

Dirksen



__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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




[Zope] How subclass calls its ancestor's method in zope?

2001-01-09 Thread Dirksen

Here is a ZClass testa, with a dtml method 'do'. Its subclass testb
overrides do. How testb calls its ancestor's 'do'? In python, it can be done as
'testa.do()', but what's the equivallent in zope? 

Dirksen



__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] How to escape quotation mark in dtml script?

2001-01-08 Thread Dirksen

dtml-call "REQUEST.set('a', '\"b\"')" won't work! Please help.

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] How to escape quotation mark in dtml script?

2001-01-08 Thread Dirksen

dtml-call "REQUEST.set('a', 'a\"b')"

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] How to set proxy roles in dtml method?

2001-01-08 Thread Dirksen

dtml-call "myMethod.manage_proxy('Manager')" only ends in this error:

You are not authorized to change myMethod because you do not have proxy roles. 

even though I'm calling the above statement in Manager role. Is it possible to do that?

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




Re: [Zope] How to call ancestral method in ZClass method?

2001-01-07 Thread Dirksen

Hi Steve,

Well, if my rack object is stored persistently, I guess no skinscript would get fired, 
am
I right? In that case, I need to override manage_delete, and call it in this statement:

dtml-call "PortalMember.manage_delete()"

Zope complains NameError of PortalMember. If I changed to:

dtml-call "_ZClass_for_DataSkin.manage_delete()"

Zope refuses the upload of the dtml method all together!

Any clues?

Dirksen


--- Steve Spicklemire [EMAIL PROTECTED] wrote:
 
 Hi Dirksen,
 
In python you would normally do:
 
   super_class_object.manage_delete(self)
 
but it might be easier/better in the case of a DataSkin 
 to use a SkinScript 'WHEN OBJECT DELETED xxx  '.
 
 -steve
 
  "Dirksen" == Dirksen  [EMAIL PROTECTED] writes:
 
 Dirksen I have a ZClass 'stuff' which is a subclass of
 Dirksen DataSkin. 'stuff' overrides 'manage_delete' method, so as
 Dirksen to do some extra clean-up jobs. After that, it will call
 Dirksen its ancestor's 'manage_delete' method to wipe itself
 Dirksen off. In java, you can do this by calling
 Dirksen 'super.manage_delete()', but how to do it in zope?
 
 Dirksen Dirksen
 
 Dirksen ______ Do You
 Dirksen Yahoo!?  Yahoo! Photos - Share your holiday photos
 Dirksen online!  http://photos.yahoo.com/
 
 Dirksen ___ Zope
 Dirksen maillist - [EMAIL PROTECTED]
 Dirksen http://lists.zope.org/mailman/listinfo/zope ** No cross
 Dirksen posts or HTML encoding!  ** (Related lists -
 Dirksen http://lists.zope.org/mailman/listinfo/zope-announce
 Dirksen http://lists.zope.org/mailman/listinfo/zope-dev )
 


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




Re: [Zope] How to call ancestral method in ZClass method?

2001-01-07 Thread Dirksen

Hi Steve,

Well, if my rack object is stored persistently, I guess no skinscript would get fired, 
am
I right? In that case, I need to override manage_delete, and call it in this statement:

dtml-call "PortalMember.manage_delete()"

Zope complains NameError of PortalMember. If I changed to:

dtml-call "_ZClass_for_DataSkin.manage_delete()"

Zope refuses the upload of the dtml method all together!

Any clues?

Dirksen


--- Steve Spicklemire [EMAIL PROTECTED] wrote:
 
 Hi Dirksen,
 
In python you would normally do:
 
   super_class_object.manage_delete(self)
 
but it might be easier/better in the case of a DataSkin 
 to use a SkinScript 'WHEN OBJECT DELETED xxx  '.
 
 -steve
 



__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] What is python scripts?

2001-01-07 Thread Dirksen

Is that a product(can't find it in zope's product page) or a new version of python
method? Where to download? Please point me to the right direction.

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] How to call MessageDialog in DTML method?

2001-01-07 Thread Dirksen

dtml-var MessageDialog reports 'resource not found'. Why?

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] Why pythonMethod forbids me cutting list?

2001-01-04 Thread Dirksen

These statements in python method:

stock=[3,4]
del stock[1]

will cause this error:

Error Type: Python Method Error
Error Value: Forbidden operation DELETE_SUBSCR at line 2

How is that?

Dirksen



__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] A bug in Membership product? (member password can be revealed by dtml method accessible by anonymous)

2001-01-03 Thread Dirksen

Hi Bill,

A dtml method with these lines:

dtml-with "acl_users.getItem('z')"
dtml-var password
/dtml-with

will show the password, despite that the methode is accessible by anonymous. Members in
my site is allowed to use dtml method. How can I prevent them from reading others'
properties?

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] How to store a dictionary in propert sheet?

2001-01-01 Thread Dirksen

Please give me a hint.

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] How to change time stamp format of zope's debug information?

2000-12-28 Thread Dirksen

In debug mode, the time stamps displayed are in GMT format. How can I change it to my
time zone?

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




Re: [Zope] How to make two racks work under one specialist?

2000-12-28 Thread Dirksen

Hi Steve,

It works! Thank you.

Still there's a couple of things to be cleared. What's the use of 'otherwise' clause? 
And
is it true that the 1st 'with' clause fails, the whole skinscript process fails (so one
'with' clause is all one skinscript can put up with)?

Dirksen



__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




Re: [Zope] How to make two racks work under one specialist?

2000-12-20 Thread Dirksen

Hi Steve,

I've made my experiment simple, by playing with the DumbZPatterns examples, testing one
rack under one specialist. Here is the skinscript:

WITH Deliverables.getItem(self.id) COMPUTE
 name=name, dueDate=dueDate, description=description, todoIDs=todoIDs

WITH SELF COMPUTE
 name=name,
 dueDate='1973/01/01',
 description='unknown achee',
 todoIDs=[]

The virtual instance is loaded by accessing attribute of 'name'. I thought any calls 
for
inexistent objects in Deliverables would turn out default values. Yet the test result
turned out an not_found error. The following modification (change to 'otherwise' 
clause)
didn't make a difference: 

WITH Deliverables.getItem(self.id) COMPUTE
 name=name, dueDate=dueDate, description=description, todoIDs=todoIDs
OTHERWISE LET
 name='unknown',
 dueDate='1973/01/01',
 description='unknown achee',
 todoIDs=[]


One more question, i.e. the following expression
WITH Deliverables.getItem(self.id) COMPUTE name, dueDate, description, todoIDs

also trigered the 'not_known' error for every objects in Deliverables. Where goes 
wrong?

Dirksen


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




Re: [Zope] How to make two racks work under one specialist?

2000-12-20 Thread Dirksen

Hi Steve,

Deliverables has objects. The call to existent objects are successful. It's the call to
the inexistent objects that doesn't turn out expectedly. But the first thing is whether
my script is correct. Do you thing so? And any other way to test this kind of 
situation,
i.e. passing processing when failure. And what's the best way to debug a skinscript. So
far I can only guess when it comes to debug a skinscript.

And what's wrong with
WITH Deliverables.getItem(self.id) COMPUTE name, dueDate, description, todoIDs

I cooked this up according to the SkinScriptSyntax wiki, but it doesn't work, 
complaining
not_found when calling the existent objects. A change like this fixes the problem:
WITH Deliverables.getItem(self.id) COMPUTE name=name, dueDate=dueDate,
description=description, todoIDs=todoIDs

What's wrong with my assingmentornamelist?

Dirksen

--- Steve Spicklemire [EMAIL PROTECTED] wrote:
 
 Hi Dirksen,
 
To which specialist did you make this change? and did you make
 any other changes? Also (I'm sure this is obvious and I'm 
 really just confirming what I'm already  sure you've checked..)
 is there an item in the Deliverable's rack with the id you checked?
 
 thanks,
 -steve
 
 
 ___
 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 )
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




Re: [Zope] How to make two racks work under one specialist?

2000-12-17 Thread Dirksen

Hi Steve,

Both racks are set to be loaded by accessing 'id', which, as you guessed right, don't
appear in handling attributes list! 

This is the simplified skinscript in maleMemberRack:
WITH getMale(self.id) COMPUTE original_object=RESULT
WITH self.original_object COMPUTE 
 name=id,
 gender=gender,
 email=email

getMale is a python method:
member = getMember(id)
if id.gender == 'male':
return member

Things just go opposite direction in femaleMemberRack.

What do you think?

Dirksen




__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] How to make two racks work under one specialist?

2000-12-16 Thread Dirksen

I set up two racks in one specialist, one is maleMemberRack, the other 
femaleMemberRack.
Both are loaded by accessing attribute id, and have skinscripts to retrieve data from a
db. Suppose the femaleMemberRack gets loaded first, it finds out from the db that the
'id' is a male, then how can it pass the process to the maleMemberRack?

Dirksen

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] How to pass parameters to dtml methods in making dtml-call

2000-12-15 Thread Dirksen

Hi,

The case is like this: 

dtml-var "some_dtml_method(_.None, _, para='blablabla')"
Works fine.

dtml-call "some_dtml_method(_.None, _, para='blablabla')"
The system complains the para being unknown. How come?

cheers
Dirksen

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] What difference between subclassing from OFS:Folder and ObjectManager

2000-12-05 Thread Dirksen

What is the difference between subclassing from OFS:Folder and ObjectManager? Is it the
ONLY difference that the ObjectManager is able to limit kinds of object to contain?

Dirksen

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] How to edit ZClass methods in HTML-Kit?

2000-12-05 Thread Dirksen

Has anybody tried to edit ZClass methods in HTML-Kit?

Dirksen


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] Membership unable to remember login name

2000-11-28 Thread Dirksen

In a test run of membership 0.7.8 product, I login as a member with the option 
'remember
my name' checked. But next time I visit the login page, the name field is blank. Is 
that
function supposed to be left over, or just something goes wrong with my installation?

Dirksen


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




Re: [Zope] LoginManager Help.

2000-11-26 Thread Dirksen

You can gain some enlightenment from these two documents:
http://www.zope.org/Members/Zen/GenericUserFolder/walkthrough
http://www.zope.org/Members/jok/SQL_based_LoginManager


--- "Jason C. Leach" [EMAIL PROTECTED] wrote:
 hi,
 
 So I have LoginManager installed. The easy part.  Now I'd like to know how
 to use it.  To start with, I'd like to authenticate against a standard
 acl_users folder or a plane text file w/ username/passwords in it.
 
 I just have no idea how to get cracking on this since the documentation
 on LoginManager is pretty short.
 
 I don't mind doing the SQL method, if I don't have to install a 3rd party
 Database like mySQL or Postgres. It's a bit of an overkill so several
 users.
 
 Thanks,
 j.
 
 ..
 . Jason C. Leach
 ... University College of the Cariboo.
 .. 
 
 
 ___
 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 )
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] How to get authentiedcated user name in pythong method?

2000-11-22 Thread Dirksen

How can I do that just as dtml-var "AUTHENTICATED_USER.getUserName()" in dtml? I 
don't
want to pass AUTHENTICATED_user as a parameter. A hint please.

cheers
Dirksen

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] What is 'Experimental LoginManager support' in PTK?

2000-11-20 Thread Dirksen

In the 2nd step of creating a portal site, there's a
'Database' option list. One can choose 'Zope Database'
or 'Experimental LoginManager support'. If I pick the
latter, I'll end up with such error:
Error Type: NameError
Error Value: Invalid/nonexistent ZClass
'MembershipZ/LoginMember'

Does the 'experimental' mean 'unfunctional'? How can I
make it work?

Dirksen

__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.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 )




[Zope] How to create a run-time zclass instance?

2000-11-20 Thread Dirksen

How to create a run-time zclass instance, which stays in the memory, not in the zodb?

__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.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 )




Re: [Zope] User Class

2000-11-20 Thread Dirksen

I think "user information folder" product is what you need. Take a look here:
http://www.zope.org/Members/did/UserInfoFolder
--- Keith Alperin [EMAIL PROTECTED] wrote:
 Greetings.  I'm a bit of a Zope and Python newbie, so please forgive me
 if I get some of the lingo wrong.  I would like to build a user class in
 python where I can store information like "First Name", "Last Name" etc.
 I would also like to store the userid and password in the instances of
 this class, and authenticate against them.  It seems as though I should
 inherit from the Zope user class, but I'm not sure exactly how to go
 about doing that.  
 
 Thanks so much in advance!
 Keith R. Alperin
 
 
 
 
 ___
 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 )
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.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 )




[Zope] Scarry BTreeFolder eats my 'contents' tab

2000-07-20 Thread Dirksen Lau

Just as soon as I restarted Zope after placing the BTreeFolder in the Products dir, 
wham! all my files were disappeared!! It took me quite a while to collect the pieces 
of my minds 
and pulled them together again when I discovered through FTP that my files were still 
inside Zope. Back in the HTTP manage console I also found that the 'Contents' tab was 
gone, 
and it was the same with most of the folders in my Zope site. After removing the 
BTreeFolder from the Products dir, the 'contents' tab was back again. Everything 
seemed normal 
except the /Control_Panel/Products/ still had an entry of BTreeFolder. Really weild!!

I'm running Zope 2.2.0b3 on NT4. Any idea to tame this beast is appreciated.

RGDS
Dirksen


___
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] How to query ZODB

2000-07-19 Thread Dirksen Lau

How can I make queries (something like ad hoc?) to the ZODB besides iteration? If 
iteration is the only option, how to go about it? Such as how to iterate through files 
in a folder?

Thanks
Dirksen


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