• R/O
  • SSH
  • HTTPS

carver: Commit


Commit MetaInfo

Revision119 (tree)
Time2007-01-31 16:44:33
Authorreno

Log Message

renamed DirectiveLink.service_name to name and implemented checking SessnioalLink.action whether callable or not

Change Summary

Incremental Difference

--- CarverWeb/trunk/carver/web/template/elements/links.py (revision 118)
+++ CarverWeb/trunk/carver/web/template/elements/links.py (revision 119)
@@ -52,13 +52,13 @@
5252
5353 def __init__(self, tag, attrs, marker=None):
5454 Link.__init__(self, tag, attrs, marker)
55- self.service_name = None
55+ self.name = None
5656 self.action = None
5757
5858 def attrs_to_render(self, context):
5959 attrs = Link.attrs_to_render(self, context)
6060 if self.action:
61- url = context.direct_action_url(self.service_name,
61+ url = context.direct_action_url(self.name,
6262 self.action)
6363 attrs[consts.HREF] = url
6464 return attrs
@@ -72,7 +72,7 @@
7272
7373 def attrs_to_render(self, context):
7474 attrs = Link.attrs_to_render(self, context)
75- if self.action:
75+ if callable(self.action):
7676 context.register_service_continuation(self.action)
7777 attrs[consts.HREF] = context.continuation_action_url()
7878 return attrs
Show on old repository browser