I found myself doing this... but felt it was flawed.

  def title(self):
    self.product = self.request().uri().split('/')[1]  

One thing I do quite often is use directory structures and filenames as
implementation specific data whenever I can. In this case, the title will
include the product name, which is the folder name.

Am I supposed to do this instead?

  def awake(self,transaction):
    Page.awake(self,transaction)
    self.product = self.transaction().request().uri().split('/')[1]  

-kaishaku



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to