Re: [web2py] Re: Domain model and web2py DAL

2015-01-06 Thread Anthony
Can you provide an example of a request that involves the kind of synchronization you are looking for? On Tuesday, January 6, 2015 7:23:48 AM UTC-5, Alan Evangelista wrote: > > > In DAL it can be done like one single command: >> db.define_table('my_items', >> Field('name', 'string', leng

Re: [web2py] Re: Domain model and web2py DAL

2015-01-06 Thread Alan Evangelista
> In DAL it can be done like one single command: > db.define_table('my_items', > Field('name', 'string', length=100), > Field('description', 'string', length=400), > Field('priority', 'integer'), > Field('creator_id', 'reference user'), > Field('dept_i

Re: [web2py] Re: Domain model and web2py DAL

2014-12-24 Thread Michele Comitini
In DAL it can be done like one single command: db.define_table('my_items', Field('name', 'string', length=100), Field('description', 'string', length=400), Field('priority', 'integer'), Field('creator_id', 'reference user'), Field('dept_id', 'reference d

Re: [web2py] Re: Domain model and web2py DAL

2014-12-24 Thread Alan Evangelista
On Tuesday, December 23, 2014 1:16:52 PM UTC-2, Alan Evangelista wrote: > > > It might be easier if you provide a concrete example of what you are >> trying to achieve (perhaps using the syntax of an existing ORM or using >> pseudo-code) and explain how the DAL falls short. >> > > Using SQLAlch

Re: [web2py] Re: Domain model and web2py DAL

2014-12-23 Thread Alan Evangelista
> It might be easier if you provide a concrete example of what you are > trying to achieve (perhaps using the syntax of an existing ORM or using > pseudo-code) and explain how the DAL falls short. > Using SQLAlchemy as data mapper below. MyItem class (models.myitem): class MyItem(object):

Re: [web2py] Re: Domain model and web2py DAL

2014-12-15 Thread Derek
I suppose it depends on what you mean by this " application logic completely independent from persistent data storage" So you certainly can have that completely independent, though you wouldn't persist anything. Is the idea that you'd update a memory representation of objects only, and somehow y

Re: [web2py] Re: Domain model and web2py DAL

2014-12-14 Thread Anthony
It might be easier if you provide a concrete example of what you are trying to achieve (perhaps using the syntax of an existing ORM or using pseudo-code) and explain how the DAL falls short. Anthony On Sunday, December 14, 2014 2:54:42 PM UTC-5, Alan Evangelista wrote: > > Simple is a relative

Re: [web2py] Re: Domain model and web2py DAL

2014-12-14 Thread Alan Evangelista
Simple is a relative term, I should not have associated it with web2py DAL. What I meant is that I want to make my application logic completely independent from persistent data storage. The only method I know to implement this is using the data mapper design pattern (http://en.wikipedia.org/wik

Re: [web2py] Re: Domain model and web2py DAL

2014-11-28 Thread Michele Comitini
You could see DAL as a scoped ORM i.e. for specific kind of objects, these object are Table(s) containing Field(s) and the way to manipulate those objects mimics as much as possible the relational model. By no mean DAL is thin. As a matter of fact it allows extremely sophisticated thing like acce