Working RedFamWorker query
Modify RedfamWorker class to work with new DB API
This commit is contained in:
@@ -227,7 +227,7 @@ class MysqlRedFam( Mysql, Base ):
|
||||
Integer, ForeignKey( "dewpbeta_redpages.pageid" ), nullable=False )
|
||||
beginning = Column( DateTime, nullable=False )
|
||||
ending = Column( DateTime, nullable=True )
|
||||
__status = Column( 'status', MutableSet.as_mutable(Status(255)), nullable=True )
|
||||
_status = Column( 'status', MutableSet.as_mutable(Status(255)), nullable=True )
|
||||
|
||||
__article0_status = Column(
|
||||
'article0_status', MutableSet.as_mutable(Status(64)), nullable=True )
|
||||
@@ -250,7 +250,7 @@ class MysqlRedFam( Mysql, Base ):
|
||||
__article3_status, __article4_status, __article5_status,
|
||||
__article6_status, __article7_status )
|
||||
|
||||
redpage = relationship( "RedPage", back_populates="redfams" )
|
||||
redpage = relationship( "MysqlRedPage", back_populates="redfams" )
|
||||
|
||||
@property
|
||||
def articlesList(self):
|
||||
@@ -271,14 +271,14 @@ class MysqlRedFam( Mysql, Base ):
|
||||
"""
|
||||
Current fam status
|
||||
"""
|
||||
return self.__status
|
||||
return self._status
|
||||
|
||||
@status.setter
|
||||
def status( self, status ):
|
||||
if status:
|
||||
self.__status = MutableSet( status )
|
||||
self._status = MutableSet( status )
|
||||
else:
|
||||
self.__status = MutableSet()
|
||||
self._status = MutableSet()
|
||||
|
||||
@property
|
||||
def articlesStatus(self):
|
||||
|
||||
Reference in New Issue
Block a user