In rewrite's branch, the 'site' attribute of Link() objects is set to a property attribute, and thus accessible through Link.site, while for Page() objects it is a method and thus you get the site via Page.site().
This is quite inconsistent and, although not insuperable, adds some pitfalls when using the framework (eg when porting 'old' scripts, as some methods that used to yield Page() objects now yield Link() ones).
Is there a possibility to homogenize this and help poor little coders like me ? :)
My favorite would be to use @property on both, but it's one more step against backward compatibility.
Thanks, stan.
PS: I can work on a patch for this upon request, if needed.
From: "stanlekub" stanlekub@free.fr:
In rewrite's branch, the 'site' attribute of Link() objects is set to a property attribute, and thus accessible through Link.site, while for Page() objects it is a method and thus you get the site via Page.site().
...
My favorite would be to use @property on both, but it's one more step against backward compatibility.
That would be my favorite, too, but I didn't do it for the very reason you suggest.
PS: I can work on a patch for this upon request, if needed.
I'll take you up on that offer. :-)
Russ