On 12/16/05, Aggelos Orfanakos <[EMAIL PROTECTED]> wrote:
>
> Hello! I have this model
>
> class IP(SQLObject):
>
>     address = StringCol(alternateID=True, length=14)
>     hostname = StringCol(length=50)
>
>     def _set_address(self, address):
>         try:
>             hostname = gethostbyaddr(address)[0]
>         except herror:
>             hostname = ''
>
>         self._set_hostname(hostname)
>         self._SO_set_address(address)

how about just
self.hostname = hostname
?

Kevin

Reply via email to