summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2001-07-19 23:55:57 +0000
committerJens Vagelpohl <jens@netz.ooo>2001-07-19 23:55:57 +0000
commit1abfdf1b30d161f79503c7e70be4a5800f755c04 (patch)
tree318332c4427a05d1d82e8358b3eb57f8c00bc832
parent10c6468a0871291344ab20d1d7be18b1f200814c (diff)
downloadJClassified-1abfdf1b30d161f79503c7e70be4a5800f755c04.zip
JClassified-1abfdf1b30d161f79503c7e70be4a5800f755c04.tar.gz
Added help screen for custom form tab
added objectIds and objectItems-implementation to overcome inheritance mess-ups
-rw-r--r--CookieUserFolder.py17
-rw-r--r--help/custom_forms.stx35
2 files changed, 50 insertions, 2 deletions
diff --git a/CookieUserFolder.py b/CookieUserFolder.py
index 1e5bd43..418f348 100644
--- a/CookieUserFolder.py
+++ b/CookieUserFolder.py
@@ -10,7 +10,7 @@
__doc__ = """ CookieUserFolder Module """
__version__='$Revision$'[11:-2]
-import urllib, string, os
+import urllib, string
from base64 import encodestring, decodestring
import Products
@@ -39,7 +39,10 @@ class CookieUserFolder( UserFolder, ObjectManager ):
docLogin = DTMLFile( 'dtml/login', globals() )
manage_options = (
- ( { 'label' : 'Custom Forms', 'action' : 'manage_contents' }, )
+ ( { 'label' : 'Custom Forms', 'action' : 'manage_contents',
+ 'help' : ( 'CookieUserFolder', 'custom_forms.stx' ) }
+ ,
+ )
+ BasicUserFolder.manage_options
)
@@ -171,6 +174,16 @@ class CookieUserFolder( UserFolder, ObjectManager ):
#
#######################################################
+ def objectIds( self, spec=None ):
+ """ Needed to get around the inheritance mess-ups """
+ return ObjectManager.objectIds( self, spec )
+
+
+ def objectItems( self, spec=None ):
+ """ Needed to get around the inheritance mess-ups """
+ return ObjectManager.objectItems( self, spec )
+
+
def all_meta_types( self ):
""" What objects can be instantiated in me? """
f = lambda x: x['name'] in ( 'DTML Method'
diff --git a/help/custom_forms.stx b/help/custom_forms.stx
new file mode 100644
index 0000000..bd05620
--- /dev/null
+++ b/help/custom_forms.stx
@@ -0,0 +1,35 @@
+Cookie User Folder - Custom Forms: Place to store custom login pages
+
+ Description
+
+ This is where you instantiate a custom login page. Simply
+ select the type of object you want for your custom login
+ from the Add list and fill in the contents.
+
+ **Warning**
+
+ It is *very easy* to lock yourself out of your own site if you
+ instantiate a login page that does not do the right thing
+
+
+ Check out the code in the CookieUserFolder install directory
+ under dtml/login.dtml for what a login page has to do. You
+ want to make sure that you have a *form* which posts at
+ least 2 input fields named *__ac__name* (user name) and
+ *__ac_password* (password) back.
+
+
+ **Help, I locked myself out of my own site!**
+
+ This can happen if you create a custom login page within
+ the CookieUserFolder which does not do the right thing.
+
+ In order to authenticate you can force the usage of the
+ default login page by going to:
+
+ http://my.site.com/acl_users/docLogin
+
+ Type in your name and password and hit the button. You
+ will stay on the same page, even if the authentication
+ succeeded, you can then type the desired address into your
+ browser's navigation bar.