Thanks bruno, that makes perfect sense (and doesn't seem to break
anything by having them) - your powertables do look great BTW!

I'm having simular issues, for now my solution was to pass the object
around by simply having every other class inherit from a "DAL
dedicated" class. But now, I need to set new connections to the DB,
but that seems problematic... WOuld you know why we can't have
multiple connections?

I have a couple of questions, i think I'll add that one as well.

Thanks,
Mart :)


On Jan 12, 11:25 pm, rochacbruno <[email protected]> wrote:
> Hi,
>
> I need to improve that, the fact is that details table runs in a different 
> thread because it is called by ajax. So it have no access to the DAL instance 
> used in main table's datasource.
>
> So in model It assign a new variable pointing to the instance of DAL in 
> commom case it is db. But you can name it differently or have múltiple dbs. 
> And that the only way I found to have the DAL instance
>
> In the top of model I referenced DAL again. Simply doing
> powertabledb = plugins.powertable.get('db', db )
>
> I'll change that so it will assume db as default and you can pass a parameter 
> if you want to use another db.
>
> I am rewriting the plugin from the scratch to implement server/json 
> processing in a better way.
>
> Thank you for testing and reporting this issues.
>
> Bruno
>
> Enviado via iPhone
>
> Em 13/01/2011, às 00:58, mart <[email protected]> escreveu:
>
>
>
>
>
>
>
> > I guess this is for Bruno,
>
> > I wanted try your tables plugin, and it seemed to have create
> > duplicate copies of each and every table if the database with itself
> > as prefix.
>
> > Example:
>
> > db.p4NewUserRequest
>
> > has been duplicated to
>
> > plugin_powertablesdb.p4NewUserRequest
>
> > And ALL tables are now like this.
>
> > Not a big deal, since it was just one of these throw away test apps.
> > But just wanted to see if I didn't mis-configure something, or if this
> > is expected, or  a bug, etc...
>
> > Anyways, has this happened t anyone else?
>
> > Thanks
> > Mart :)

Reply via email to