Beispiel #1
0
 def drop_source(self, name, type):
     nameclause = Eq('name', name)
     clause = nameclause & Eq('type', type)
     for section in self.get_sections(name):
         self.main.drop(list_tablename(name, type, section))
     self.sources.delete(clause=clause)
     sources = self.sources.select(clause=clause)
     if not len(sources):
         self.repsections.delete(clause=nameclause)
         self.repos.delete(clause=nameclause)
 def drop_source(self, name, type):
     nameclause = Eq('name', name)
     clause = nameclause & Eq('type', type)
     for section in self.get_sections(name):
         self.main.drop(list_tablename(name, type, section))
     self.sources.delete(clause=clause)
     sources = self.sources.select(clause=clause)
     if not len(sources):
         self.repsections.delete(clause=nameclause)
         self.repos.delete(clause=nameclause)
Beispiel #3
0
 def _tablename(self, section, name=None, type=None):
     if name is None:
         name = self.current.name
     if type is None:
         type = self.current.type
     return list_tablename(name, type, section)
 def _tablename(self, section, name=None, type=None):
     if name is None:
         name = self.current.name
     if type is None:
         type = self.current.type
     return list_tablename(name, type, section)