[Zope] RE: Code style check

Ayhan Ergul chaluba@yahoo.com
Tue, 18 Dec 2001 15:25:32 -0800 (PST)


> Inside the external method, I'm extracting the name
> of the page and the 'entry' value like this:

> pageID = self.absolute_url().split('/')[-1]
> entryNumber = self.REQUEST['entry']

> This works. But does it look idiomatically >
reasonable, or is there a more commonly accepted way >
to do it?

try this:
pageID = self.getId()

Ayhan

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com