changeset 1627:b0b73fe90f3d

Remove wikiname, disable ACL in metadata editor
author Cheer Xiao <xiaqqaix@gmail.com>
date Sun, 05 Aug 2012 21:55:45 +0800
parents 346c52c9c1e5
children 95161306ec62
files MoinMoin/items/__init__.py MoinMoin/templates/modify_meta.html
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Aug 05 21:55:45 2012 +0800
+++ b/MoinMoin/items/__init__.py	Sun Aug 05 21:55:45 2012 +0800
@@ -120,10 +120,11 @@
 
 
 class BaseMetaForm(Form):
-    wikiname = OptionalText.using(label=L_("Wiki name")).with_properties(placeholder=L_("Wiki name"))
     itemtype = RequiredText.using(label=L_("Item type")).with_properties(placeholder=L_("Item type"))
     contenttype = RequiredText.using(label=L_("Content type")).with_properties(placeholder=L_("Content type"))
-    acl = OptionalText.using(label=L_('ACL')).with_properties(placeholder=L_("Access Control List"))
+    # Disabled - Flatland doesn't distinguish emtpy value and nonexistent
+    # value, while an emtpy acl and no acl have different semantics
+    #acl = OptionalText.using(label=L_('ACL')).with_properties(placeholder=L_("Access Control List"))
     summary = OptionalText.using(label=L_("Summary")).with_properties(placeholder=L_("One-line summary of the item"))
     tags = Tags
 
--- a/MoinMoin/templates/modify_meta.html	Sun Aug 05 21:55:45 2012 +0800
+++ b/MoinMoin/templates/modify_meta.html	Sun Aug 05 21:55:45 2012 +0800
@@ -4,10 +4,8 @@
     <h2>General meta</h2>
     <dl>
         {% for e in [
-            'wikiname',
             'itemtype',
             'contenttype',
-            'acl',
             'summary',
             'tags',
             ] %}