Well, you can probably create a view on a db server you do have access to which referfences your read-only view.
I agree that for this kind of (view / analysis) use, it would be more convenient to just be able to do this in DAL. On Tue, Sep 1, 2009 at 8:06 PM, Don Lee <[email protected]> wrote: > Thanks, I thought about that. But as I said I do not have administrative > access to the server. I will talk to the database directly. I was just > curious is someone had another way around this. it would be nice if I would > map a primary key in web2py or have a primary key that was not an integer. > > > On Tue, Sep 1, 2009 at 2:44 PM, Yarko Tymciurak <[email protected]> wrote: > >> >> I think at this time your best option is to create a view of the table >> in question in a database server, and remap the primary key in that >> way. >> >> On Tue, Sep 1, 2009 at 10:40 AM, Don<[email protected]> wrote: >> > >> > I need to access a database that was not created by me. I have read- >> > only access so, when I define the layout, web2py cannot create an "id" >> > field. is there some way for me to access this database, perhaps >> > somehow alias their primary key to id? >> > > >> > >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

