Hi,

First off, Dabo is awesome! :)

I have the following scenario:

1. A configuration table:
  - ConfigKey
  - ConfigValue
  - ConfigGroup

2. There is a bizobj for the config table:
  class ConfigBiz( dabo.biz.dBizobj )

  def initProperties(self):
        self.DataSource = "configurations" 
        self.DataStructure = (
                ("configkey", "C", False, "configurations", "configkey"),
                ("configvalue", "C", False, "configurations", "configvalue"),
        )

My issue comes when I want to create bizobj for each config group:

For example: class SecurityConfigBiz( ConfigBiz ).
In this class I would add a where clause ConfigGroup = 'Security'.

class SecurityConfigBiz( ConfigBiz):
  
    def initProperties(self):   
        self.super()
        self.DataSource = "configs.security" #<---- Can't do this!
        self.addWhere( "configurations.configgroup= 'Security'" )

On my form I want to add the bizobj for multiple configuration groups, so I can 
connect the bizobj to
different panels displaying the configuration groups.

The DataSource is the unique reference for the bizobj for the form. I have 
named them differently for the bizobj for each group so they can be added to the
main form. The trouble is the DataSource field MUST match the table name, 
otherwise the field will be set as a non update field. So if I have
SecurityConfigBiz as above, 'configvalue' will not be updated when save is 
called.

So basically, is there a way of adding bizobjs for the same table to a form? 
What is the correct way of doing this?

cheers.

                                          

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to