def __init__(self, tourorrow): if ( type(tourorrow) == type('') ): tour = tourorrow self.ident = 0 self.user = 0 self.tour = tour else: row = tourorrow self.ident = row[0] self.user = row[1] self.tour = row[2] self.uri = util.autolink() + "/%d" % self.ident
def __init__(self, loginorrow, password='', ident=0, email=''): if ( type(loginorrow) == type('') ): login = loginorrow self.ident = ident self.login = login self.password = password self.email = email else: row = loginorrow self.ident = row[0] self.login = row[1] self.password = row[2] self.email = row[3] self.uri = util.autolink() + "/%d" % self.ident
def __init__(self, nameorrow, value=None): if ( type(nameorrow) == type('') ): name = nameorrow self.ident = 0 self.user = 0 self.name = name self.value = value else: row = nameorrow self.ident = row[0] self.user = row[1] self.name = row[2] self.value = row[3] self.uri = util.autolink() + "/%d" % self.ident
def __init__(self, nameorrow): if ( type(nameorrow) == type('') ): name = nameorrow self.ident = 0 self.user = 0 self.name = name self.public = False self.date = datetime.now() else: row = nameorrow self.ident = row[0] self.user = row[1] self.public = bool(row[2]) self.name = row[3] self.date = row[4] self.uri = util.autolink() + "/%d" % self.ident
def __init__(self, searchorrow): if ( type(searchorrow) == type(0) ): search = searchorrow self.ident = 0 self.thumb_url = '' self.page_url = '' self.name = '' self.user = 0 self.search = search else: row = searchorrow self.ident = row[0] self.thumb_url = row[1] self.page_url = row[2] self.name = row[3] self.user = row[4] self.search = row[5] self.uri = util.autolink() + "/%d" % self.ident