I have used a CalendarDatePicker and it didn't work. I chased the problem down to a bug in base.Link: obviously the Link class parts from the webpath being relative, if you use an absolute path as webpath, you get a malformed url, like
/http://localhost:8080/tg_widgets/turbogears.widgets/calendar/calendar.js because it always prepends a slash to the url, while this should only be done if a) the url doesn't start with a slash ("bla/blabla") b) the url is not absolute ("http://bla.bla.bla:8080") My first idea was to build the url with turbogears.url, but this just ignored the webpath, so I just did it this way: class Link(Resource): def __init__(self, mod, *args, **kw): super(Link, self).__init__(*args, **kw) self.mod = mod def update_params(self, d): super(Link, self).update_params(d) #=== if startup.webpath.startswith("http://"): link = "%stg_widgets/%s/%s" % (startup.webpath, self.mod, self.name) else: link = "/%stg_widgets/%s/%s" % (startup.webpath, self.mod, self.name) d["link"] = link #=== def __hash__(self): return hash(self.mod + self.name) def __eq__(self, other): return self.mod == getattr(other, "mod", None) and \ self.name == getattr(other, "name", None) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

