--- a/web/views/forms.py Thu Sep 17 15:52:46 2009 +0200
+++ b/web/views/forms.py Tue Sep 22 12:11:12 2009 +0200
@@ -82,9 +82,10 @@
for key, val in kwargs.items():
if key in NAV_FORM_PARAMETERS:
self.form_add_hidden(key, val)
- else:
- assert hasattr(self.__class__, key) and not key[0] == '_', key
+ elif hasattr(self.__class__, key) and not key[0] == '_':
setattr(self, key, val)
+ # skip other parameters, usually given for selection
+ # (else write a custom class to handle them)
if mainform:
self.form_add_hidden('__errorurl', self.session_key())
self.form_add_hidden('__domid', self.domid)
@@ -530,7 +531,8 @@
break
return result
- def srelations_by_category(self, categories=None, permission=None):
+ def srelations_by_category(self, categories=None, permission=None,
+ strict=False):
return ()
def should_display_add_new_relation_link(self, rschema, existant, card):