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

2001-01-15 Thread Kamon Ayeva


Hi,

Has anyone been able to use the delUserForm to delete
users added within a PersistentUserSource in the
PortalMembershipSystem object ?

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

In the view I get, the user url points to
.../acl_users/userid (for example /acl_users/david)
and cannot be used to check the user object.

Thanks for any usefull answer.

Regards,
Kamon





__
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] Delete users in Membership acl_users

2001-01-11 Thread Kamon Ayeva

Hi,

Has anyone been able to use the delUserForm to delete
users added within a PersistentUserSource in the
PortalMembershipSystem object ?

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

In the view I get, the user url points to
.../acl_users/userid (for example /acl_users/david)
and cannot be used to check the user object.

Thanks for any usefull answer.

Regards,
Kamon


__
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] ZCatalog or Traversal question ?

2000-09-08 Thread kamon ayeva

Hi,

I want to query content built with CatalogAware ZClasses on my site.
I am able to get the abstract document ('abstract' method) which is a 
subobject of the document I want to display (let say 'Document' ZClass). But 
I don't know how to display the id of the resulting 'Document'.

With the following snippet I get a partial solution since I get the url:

dtml-in Catalog
dtml-if "meta_type=='DTML Method' and id=='abstract'"

a HREF="http://www.mydomain.comdtml-var 
"Catalog.getpath(data_record_id_)"/../"

   dtml-with "Catalog.getobject(data_record_id_)"
 dtml-var "REQUEST['URL2']"
   /dtml-with

/a

/dtml-if
/dtml-in

How can I get the id or title of (Document) instead of the url ?

Many thanks.

-- Kamon
Ecubateur


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

Share information about yourself, create your own public profile at 
http://profiles.msn.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] MetaData?

2000-09-08 Thread kamon ayeva

OK, checking the Advanced ZCatalog Howto, I just found I could maybe use 
something like

dtml-in "Catalog(meta_type=['DTML Method','Document', 'Anothermetatype])"
   Method or Document or Anothermetatype:
   dtml-var "Catalog.getpath(data_record_id_)"br
/dtml-in

to solve my problem.

Haven't yet tested, so I dunno if it's my best option.

-- Kamon


From: Chris Withers [EMAIL PROTECTED]
To: kamon ayeva [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [Zope] MetaData?
Date: Fri, 08 Sep 2000 13:06:50 +0100

kamon ayeva wrote:
  How can I get the id or title of (Document) instead of the url ?

Aren't they in the MetaData returned by the catalog query?

If they aren't, add them ;-)

cheers,

Chris

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

Share information about yourself, create your own public profile at 
http://profiles.msn.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] MetaData?

2000-09-08 Thread kamon ayeva

Hi Chris,

From: Chris Withers [EMAIL PROTECTED]
To: kamon ayeva [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [Zope] MetaData?
Date: Fri, 08 Sep 2000 13:06:50 +0100

kamon ayeva wrote:
  How can I get the id or title of (Document) instead of the url ?

Aren't they in the MetaData returned by the catalog query?

They are. But I guess the text searching is on the 'abstract' method, and 
what I need is something like PARENTS[] to jump to the container.

Or am I missing something about good usage of ZCatalog ?

If they aren't, add them ;-)

cheers,

Chris

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

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Copying a dtml method when creating a ZClass instance

2000-09-03 Thread kamon ayeva

From: Tino Wildenhain [EMAIL PROTECTED]
To: kamon ayeva [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [Zope] Copying a dtml method when creating a ZClass instance
Date: Sat, 02 Sep 2000 10:26:19 +0200

Hi,

kamon ayeva wrote:
 
  I have several reasons whay I need to attach a template to each ZClass.
  Among them are:
  1/ cases like high level folders where I might want to customize the 
page's
  rendering and/or skin,
  2/ cases like contained objects which uses a generic skin (but you can 
still
  customize the skin of one among them, if you want)
  3/ my site needs to be easily designed / modified by Web Designers that 
do
  not understand Acquisition.

Ah yes. But then, you throw all the advantages of aquisition away.
I would suggest to at least copy the template only on request,
if changes are really made. The 'web designers' should have the
opportunity to delete this template to derive their design from the
previus folder. This way you would not have all the templates laying
around in every subfolder and making changes very very hard.
An yes, this is understandable even by the underenlighted web designer
;-)

Definitely agree. Thanks.

Cheers
Tino

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

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Copying a dtml method when creating a ZClass instance

2000-09-01 Thread kamon ayeva

Hi,

I need some help.
I have a DTML method at the root of Zope called 'Template'.
How can I make the constructor of a ZClass (folderish) to copy this method 
to each of its instances ? Can someone provide me with a complete snippet to 
add in the ZClass constructor ?

Many thanks.

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

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Copying a dtml method when creating a ZClass instance

2000-09-01 Thread kamon ayeva

Thanks Tino and Chris for your feedback.

From: Tino Wildenhain [EMAIL PROTECTED]
To: kamon ayeva [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [Zope] Copying a dtml method when creating a ZClass instance
Date: Fri, 01 Sep 2000 14:18:25 +0200

Hi Kamon,

kamon ayeva wrote:
 
  Hi,
 
  I need some help.
  I have a DTML method at the root of Zope called 'Template'.
  How can I make the constructor of a ZClass (folderish) to copy this 
method
  to each of its instances ? Can someone provide me with a complete 
snippet to
  add in the ZClass constructor ?

Copy? Why?
aquisition should make it 'visible' in every subfolder automatically.

Regards
Tino

I have several reasons whay I need to attach a template to each ZClass. 
Among them are:
1/ cases like high level folders where I might want to customize the page's 
rendering and/or skin,
2/ cases like contained objects which uses a generic skin (but you can still 
customize the skin of one among them, if you want)
3/ my site needs to be easily designed / modified by Web Designers that do 
not understand Acquisition.

Thanks for the tip Chris, I was able to do it by adding my 
ZClass-specific-template in the Zope Product folder and adding a call to
manage_clone(ZClass-specific-template, 'standard_template', [REQUEST]) in 
the ZClass constructor method. I use the same id 'standard_template' to 
exploit acquisition globally on the site (the Web designer would not have to 
care about that).
Next thing is generalising this method to also allow multiple templates 
available for each object i.e. the Content Manager can choose a prefered 
skin when instanciating an object.

Best Regards,
Kamon
Ecubateur

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

Share information about yourself, create your own public profile at 
http://profiles.msn.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] review product proposal

2000-07-21 Thread kamon ayeva

Hi,

"J. Atwood" (I was unable to get his email from the mailing list search 
 interface) wrote some days ago:

On my list of products that I would like to build / help build

ZCLassifieds:

A product that allows users to post classifieds for sale with categories,
pictures, start and end dates, email contacts, etc. Could be anonymous or
require a log in that plays upon the strengths of Zope.

ZReview:

A generic review product that allows people to post reviews of "things" and
have other people comment on the review. A lot of what is in Zope Treasures
but maybe with pictures etc.

Has anyone starting building these, need these, or would be interested in
helping build these?


[K.A.] I just need this for a site I am working on, based on ZDP-Tools. 
Document rating is one of the thing lacking.
ZDP-Tools is ZClass-based, so if you like ZClasses, you might be interested 
to collaborate on it and leverage this solution for your applications. 
Actually, there is a ZDP-Tools development effort at Sourceforge (since this 
week) and you might be interested to join our discussions. Maik Roeder or I 
is going to do a formal announcement later.

Regards,
Kamon





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 )




[Zope] ZSQL newbie question

2000-06-21 Thread kamon ayeva

Hi,

I have a text file object containing data I want to use to update a MySQL 
table.
I can get the data using the LocalFS object product and the howto from 
jfarr, but I don't know how to use ZSQL method and DTML method to inject 
this data in the table.
Any help would be appreciated.

Regards,
Kamon

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 )