On Wednesday, April 15, 2015 at 9:56:46 AM UTC-7, Alessio Varalta wrote:
>
> Hi, i have to use the class model but not the connection with the database 
> exist and method to take the model and insert the value without DAL?
>


I'm not sure I understand the question.  The two 2 readings that I think 
you might mean are:

1) "My application doesn't have a database but does use a class design; how 
do I do this in Web2Py?"

I don't know the answer, but I think the book covers part of it.  You might 
begin by reading here:
<URL:http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Model-less-applications>
No-DB operation is also a topic that shows up in the list from time to 
time.  (As does the the model-less topic.)
I wouldn't go back farther in the archives than 2012, because further back 
the techniques were less well-developed
and not as well supported.

2) "My application already has a database; how do I work with that in 
Web2Py?"

This gets into the question of importing models and migrations, both of 
which have been covered recently in the list.
I would start out with reading
<URL:http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Legacy-databases-and-keyed-tables>
to look at what is expected of the database.
There are some tools for helping to import models, but they aren't 
completely reliable according to the recent discussions, so you should 
expect that some manual adjustment will be needed.  Once you have the 
models, then a one-time migration should give you the table files Web2Py 
uses to understand your schema, and should then be in a normal maintenance 
mode.

If I completely misunderstood your question, I offer my apologies.  Also, 
I'm pretty much a basic user, and my applications just use simple databases 
on top of the SQLite shipped with Web2Py, but there are many experienced 
users who can give more detail as your questions get more specific.

Good luck!

Dave
/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to