Skip to content

Commit c5d2dd3

Browse files
author
Alexander Smishlajev
committed
describe copy_url method of hyperdb item wrapper
1 parent c8c3f4e commit c5d2dd3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

doc/customizing.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.189 $
5+
:Version: $Revision: 1.190 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1919,8 +1919,16 @@ hasPermission specific to the "user" class - determine whether the
19191919
is_edit_ok is the user allowed to Edit the current item?
19201920
is_view_ok is the user allowed to View the current item?
19211921
is_retired is the item retired?
1922-
download_url generates a url-quoted link for download of FileClass
1922+
download_url generate a url-quoted link for download of FileClass
19231923
item contents (ie. file<id>/<name>)
1924+
copy_url generate a url-quoted link for creating a copy
1925+
of this item. By default, the copy will acquire
1926+
all properties of the current item except for
1927+
``messages`` and ``files``. This can be overridden
1928+
by passing ``exclude`` argument which contains a list
1929+
(or any iterable) of property names that shall not be
1930+
copied. Database-driven properties like ``id`` or
1931+
``activity`` cannot be copied.
19241932
=============== ========================================================
19251933

19261934
Note that if you have a property of the same name as one of the above

0 commit comments

Comments
 (0)