Re: [Zope-dev] How do I create a folder with subfolders, docs etc?

2001-01-13 Thread Robert Prosenc

try this:




it works with zope 2.2.4

regards rob.


 Robert Prosencweb:  http://www.matrixware.at/
   mail: [EMAIL PROTECTED]
   Matrixware  phone:+43(  1)   713 43 06 - 2
   postal:   Geusaugasse 39
 (Ecke Kundmanngasse)
 A-1030 Vienna, AUSTRIA

while !asleep() sheep++ 



___
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] Computed Attributes (was: [Zope-dev] How do I create a folder with subfolders, docs etc?)

2001-01-12 Thread Dieter Maurer

Espen Sorbye Frederiksen writes:
 > I have truble with the permissions (get the message: "Authorization
 > failed. Retry?") when I do the following:
 > 
 > 
 > 
An FAQ! Anwser found via a search in the searchable list archive
(though it would be a bit difficult).

Anwser:

  An attribute name must never start with "_".
  Though, it has not been your intend, "_" is
  used as an attribute name in "existingFolder._".

  What you should use instead is:

   _.getattr(existingFolder,folder_id).manage_addFolder('subFolder')


  Keep in mind for the future, that the right
  operand of "." is always a name and never an expression!
  When you want to use an expression, you will
  use "getattr" instead.



Dieter

___
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 do I create a folder with subfolders, docs etc? (fwd)

2001-01-12 Thread Espen Sorbye Frederiksen

I have truble with the permissions (get the message: "Authorization
failed. Retry?") when I do the following:




I am logged in as a manager.

Your example under does work, though..
>
> Try this:
>
> 
> 

>
> =
> | Casey Duncan
> | Kaivo, Inc.
> | [EMAIL PROTECTED]
> `->
>
> __
> 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 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 )




Re: [Zope-dev] How do I create a folder with subfolders, docs etc?

2001-01-12 Thread Espen Sorbye Frederiksen

I have truble with the permissions (get the message: "Authorization
failed. Retry?") when I do the following:




I am logged in as a manager.

Your example under does work, though..
>
> Try this:
>
> 
> 

>
> =
> | Casey Duncan
> | Kaivo, Inc.
> | [EMAIL PROTECTED]
> `->
>
> __
> 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 )




Re: [Zope-dev] How do I create a folder with subfolders, docs etc?

2001-01-11 Thread Casey Duncan


--- Espen Sorbye Frederiksen <[EMAIL PROTECTED]>
wrote:
> Thank you for your reply. I relised that my example
> was not quite what I
> ment. What if newfolder is a variable taking a
> random string value. How
> can I emediatly after creating the folder, with the
> variable
> newfolder id, create a subfolder within the one I
> just made?
> 
> My sample code should look like this:
> 
> 
> 
> 
>
expr="newfolder.manage_addFolder(id="anotherfolder")">
> 
> If you have any further suggestions I would be
> grateful,
> 
> Espen
> 

Try this:




=
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`->

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




Re: [Zope-dev] How do I create a folder with subfolders, docs etc?

2001-01-11 Thread Phil Harris

Espen,

How about untested, but similar works in Python External method:





maybe?!?

Phil


On Thu, 11 Jan 2001, Espen Sorbye Frederiksen wrote:
> Have tried the simplest way:
>
> 
>
> 
>
> this does not work!
>
> Any solutions or alternative ways to do it?
>
>
> ___
> 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 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 do I create a folder with subfolders, docs etc?

2001-01-11 Thread Espen Sorbye Frederiksen

Have tried the simplest way:





...this does not work!

Any solutions or alternative ways to do it?


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