コード例 #1
0
 def drop_families(self, listbox, context, x, y, selection,
                 targettype, time):
     families = keysplitter(selection)
     clause = Eq('profile', self.current.profile)
     data = dict(profile=self.current.profile)
     current = [x.family for x in self.pfamily.select(clause=clause)]
     for f in families:
         if f not in current:
             data['family'] = f
             self.pfamily.insert(data=data)
     self.__set_pages(self.current.profile)
コード例 #2
0
 def drop_families(self, listbox, context, x, y, selection, targettype,
                   time):
     families = keysplitter(selection)
     clause = Eq('profile', self.current.profile)
     data = dict(profile=self.current.profile)
     current = [x.family for x in self.pfamily.select(clause=clause)]
     for f in families:
         if f not in current:
             data['family'] = f
             self.pfamily.insert(data=data)
     self.__set_pages(self.current.profile)
コード例 #3
0
ファイル: profilegen.py プロジェクト: pombredanne/paella-svn
 def drop_trait(self, listbox, context, x, y, selection, targettype, time):
     traits = keysplitter(selection)
     self.profiletrait.insert_traits(traits)
     self.__set_pages(self.current.profile)
コード例 #4
0
 def drop_trait(self, listbox, context, x, y, selection,
                targettype, time):
     traits = keysplitter(selection)
     self.profiletrait.insert_traits(traits)
     self.__set_pages(self.current.profile)