[genropy] Re: Chiavi primarie

  • From: Massimo Masson <max@xxxxxxxxxxxxxxx>
  • To: genropy@xxxxxxxxxxxxx
  • Date: Sun, 6 Nov 2016 15:31:47 +0100

Il 19/10/2016 19:38, Giovanni Porcari ha scritto:
[...]

Ti riporto ad esempio la tabella 'counter' che nel package adm assicura la 
gestione di tutti i contatori di Genropy:


  def config_db(self, pkg):
        tbl = pkg.table('counter', 
pkey='codekey',pkey_columns='pkg,tbl,code,fld,period', name_long='!!Counter')
        self.sysFields(tbl, id=False, ins=True, upd=True)
        tbl.column('codekey', size=':80', readOnly='y', name_long='!!Codekey', 
indexed='y')
[...]

Perch√© il campo 'codekey' √® readOnly='y'?

Massimo.


Other related posts: