# HG changeset patch # User Sylvain Thénault # Date 1253872655 -7200 # Node ID e867ae952fc0bb244f73de934d7cb6fa1bc26fae # Parent 52e6c8d62ac6d38926a82d4f692834b5fc449d95 cleanup diff -r 52e6c8d62ac6 -r e867ae952fc0 rtags.py --- a/rtags.py Fri Sep 25 11:57:31 2009 +0200 +++ b/rtags.py Fri Sep 25 11:57:35 2009 +0200 @@ -100,10 +100,6 @@ self.tag_relation(key, *args, **kwargs) def tag_relation(self, key, tag): - #if isinstance(key, basestring): - # stype, rtype, otype = key.split() - #else: - stype, rtype, otype, tagged = [str(k) for k in key] if self._allowed_values is not None: assert tag in self._allowed_values, \ '%r is not an allowed tag (should be in %s)' % ( diff -r 52e6c8d62ac6 -r e867ae952fc0 web/views/autoform.py --- a/web/views/autoform.py Fri Sep 25 11:57:31 2009 +0200 +++ b/web/views/autoform.py Fri Sep 25 11:57:35 2009 +0200 @@ -131,7 +131,8 @@ targettype = targettypes[0] if self.should_inline_relation_form(rschema, targettype, role): entity = self._cw.vreg['etypes'].etype_class(targettype)(self._cw) - subform = self._cw.vreg['forms'].select('edition', self._cw, entity=entity) + subform = self._cw.vreg['forms'].select('edition', self._cw, + entity=entity) if subform.form_needs_multipart: return True return False diff -r 52e6c8d62ac6 -r e867ae952fc0 web/views/editforms.py --- a/web/views/editforms.py Fri Sep 25 11:57:31 2009 +0200 +++ b/web/views/editforms.py Fri Sep 25 11:57:35 2009 +0200 @@ -63,8 +63,9 @@ if entity.eid in done: continue done.add(entity.eid) - subform = self._cw.vreg['forms'].select('base', self._cw, entity=entity, - mainform=False) + subform = self._cw.vreg['forms'].select('base', self._cw, + entity=entity, + mainform=False) self.form_add_subform(subform) @@ -84,11 +85,13 @@ % _('this action is not reversible!')) # XXX above message should have style of a warning w(u'

%s

\n' % _('Do you want to delete the following element(s) ?')) - form = self._cw.vreg['forms'].select(self.__regid__, req, rset=self.cw_rset, - onsubmit=onsubmit) + form = self._cw.vreg['forms'].select(self.__regid__, req, + rset=self.cw_rset, + onsubmit=onsubmit) w(u'\n') @@ -120,7 +123,8 @@ return self._one_rvid def _build_landing_zone(self, lzone): - return lzone or self._defaultlandingzone % {'msg' : xml_escape(self._cw._(self._landingzonemsg))} + return lzone or self._defaultlandingzone % { + 'msg': xml_escape(self._cw._(self._landingzonemsg))} def _build_renderer(self, entity, rtype, role): return self._cw.vreg['formrenderers'].select(