[web2py:31889] Re: selecting part of model to run

2009-09-29 Thread rb
fairly segmented in its table usage. Oh, I am not currently using migrate=true. Perhaps... As always, many thanks for the advice and other comments. You all are a great support to have. -- Rb On Sep 29, 8:47 am, mdipierro wrote: > Because model are re-read at every request, modules are n

[web2py:31887] Re: selecting part of model to run

2009-09-29 Thread rb
fairly segmented in its table usage. Oh, I am not currently using migrate=true. Perhaps... As always, many thanks for the advice and other comments. You all are a great support to have. -- Rb On Sep 29, 8:47 am, mdipierro wrote: > Because model are re-read at every request, modules are n

[web2py:31831] selecting part of model to run

2009-09-28 Thread rb
tables but need only 4 to 6 of them at a time, I would like to avoid the setup time for all 93 of the tables in the model files. --- Rb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py:30848] Re: xmlrpc errors in >1.65.5

2009-09-12 Thread rb
My ISP will send someone out in 5 days or so to fix my connection. Until then I am... alone. (Sent from local library branch) On Sep 11, 8:26 pm, mdipierro wrote: > I do not know. Can you post some code to reproduce it? > > On Sep 11, 2:07 pm, rb wrote: > > > !...@#$ FALSE

[web2py:30762] Re: xmlrpc errors in >1.65.5

2009-09-11 Thread rb
fails ***SILENTLY*** and this is no fun at all. I guess because the error was in an import statement in the controller, the svr could just go on running. Ok, so now I've learned to look thru the errors folder. Why was a ticket not generated for this? --- Rb On Sep 11, 11:45 am, rb wrote:

[web2py:30755] Re: xmlrpc errors in >1.65.5

2009-09-11 Thread rb
(db.tblInsts.frmName==frmName).select() else: rows = db((db.tblInsts.frmName==frmName)& \ (db.tblInsts.tblInstName==tblInstName)).select() return rows.response In desperation I also nuked all the database files. This had no effect. --- Rb On Sep 11, 11:36 am, mdipierro w

[web2py:30750] Re: xmlrpc errors in >1.65.5

2009-09-11 Thread rb
Ok, so I went back to 1.65.5 and everything just works. Eek! --- On Sep 11, 11:28 am, rb wrote: > I tried to upgrade once before but ran into problems. So I've stayed > at 1.65.5. Today I upgraded to 1.66.2 and I'm getting the 500 INTERNAL > SERVER error when I

[web2py:30748] xmlrpc errors in >1.65.5

2009-09-11 Thread rb
b2py manually which allowed it to create its application folder, etc. I then shut it down and copied over my svrrnapos app folder into the applications folder. I then started up web2py (the usual way, with the recycled password, etc). I then looked at the admin interface from my browser

[web2py:29913] Re: YAL - yet another logo

2009-09-02 Thread rb
t Web2py is: a web server that is programed in python. === Oops... maybe that's more than just 2 cents. In any case, I hope I struck the right amount of "Critical" and "informative" and "promotionary" in order to intrigue others to read it all. -- Rb On S

[web2py:29026] Re: possible bug in SQL WHERE clause parser

2009-08-20 Thread rb
Thx. Good point. http://xkcd.com/327/ --- Rb "bobby drop tables" On Aug 17, 11:58 pm, mdipierro wrote: > You are sending via xmlrpc a string and the tring is eval-ed on the > server. A malicious client could send a string like "os.system('rm -f > *')" i

[web2py:28866] Re: possible bug in SQL WHERE clause parser

2009-08-17 Thread rb
refix in the rowSelectStr creation and to include the "db." prefix in the colSelectStr creation. At least, that's my (current) understanding. -- Rb On Aug 17, 2:30 pm, mdipierro wrote: > It is not a bug. > > db(query) > > query can be a DAL query or a SQL query (string

[web2py:28839] possible bug in SQL WHERE clause parser

2009-08-17 Thread rb
In my client code (of my thick xmlrpc client) I perform a Read (or Select) with code, some of which follows: --- def Read( self, keyName="pri", maxRowCount=0): keyColNames = self.tblInfo.GetKeyColNames(keyName) keySegValues = self.record.GetNonNullColValues (keyColNames)

[web2py:28562] Re: where for art thou, oh session attribute?

2009-08-13 Thread rb
but why can't it be made to support shuttling web traffic between distant clients and local (stateful) processes? On Aug 13, 1:14 pm, weheh wrote: > To add some levity to this important topic, rb is also, unfortunately, > confused about the meaning of "wherefore art thou, oh ses

[web2py:28490] Re: where for art thou, oh session attribute?

2009-08-13 Thread rb
> Furthermore, a "good"  service should be designed to work > with no state. State is the client's job, not the service, and this > makes your service more scalable. An n-tier (web) app has at least a database facility, business logic facility, and presentation. Your comment above implies that al

[web2py:28410] Re: where for art thou, oh session attribute?

2009-08-12 Thread rb
the fun we had... ) === Rb "web programming is haard." On Aug 12, 12:23 am, Yarko Tymciurak wrote: > Ahem > > "Knock, knock!"  --- says the browser... > "Whose there?"  --- says the server... > > If the request (browser)  identifies itself wit

[web2py:28409] Re: where for art thou, oh session attribute?

2009-08-12 Thread rb
A very good explanation. I think I get it now. In the bad ol' static webpage days, a webserver's job was to figure out the mapping from the requested url to the static file and then send that file back. Later, dynamic webpages were created "on the fly" by processes which were fed request parameter

[web2py:28397] Re: where for art thou, oh session attribute?

2009-08-11 Thread rb
variable (and hence my data) instantiated in between calls. I'm new to this web app thing. So, thx for the clarification. I'll either try to hack the code you referenced or else I'll just end up using the web2py server as a data server and keep the business logic in the thick client. ---

[web2py:28386] Re: where for art thou, oh session attribute?

2009-08-11 Thread rb
ivestate.com/recipes/501148/ > > Or you need to pass an extra key to the function calls and is that to > retrieve a session. > > Massimo > > On Aug 11, 6:09 pm, rb wrote: > > > Further, I added a : > > > session.hello = "hello, world" > > &g

[web2py:28381] Re: where for art thou, oh session attribute?

2009-08-11 Thread rb
col does > not use cookies to maintain persistence. > > On Aug 11, 5:02 pm, rb wrote: > > > In my think-client xmlrpc protocol to web2py svr code I am trying to > > maintain data in the session global variable but it doesn't seem to > > hold it. For example I fi

[web2py:28378] Re: where for art thou, oh session attribute?

2009-08-11 Thread rb
Further, I added a : session.hello = "hello, world" in order to see if it just didn't want to hold onto MY data. No dice. session.hello is gone on the next call as well. --- On Aug 11, 3:02 pm, rb wrote: > In my think-client xmlrpc protocol to web2py svr code I am trying

[web2py:28374] where for art thou, oh session attribute?

2009-08-11 Thread rb
In my think-client xmlrpc protocol to web2py svr code I am trying to maintain data in the session global variable but it doesn't seem to hold it. For example I first start by creating a document-form (tree of datatables), cached in a data structure, as an attribute of session. Here's the code: fr

[web2py:28140] Re: session forgetMeNot

2009-08-07 Thread rb
Thx. But where'd you get this info from? On Aug 6, 10:31 pm, Richard wrote: > try auth.settings.expiration = X > > On Aug 7, 2:35 pm, rb wrote: > > > Section 4.8 from the Web2py Manual states that session data remains > > until/unless the user deletes the sessi

[web2py:28131] session forgetMeNot

2009-08-06 Thread rb
Section 4.8 from the Web2py Manual states that session data remains until/unless the user deletes the session cookie or else the session expires. When does a session expire - or what causes a session to expire? Do I have any control over maintaining the life of a session ? I guess I can delete a s

[web2py:27529] Re: web2py development and deployment

2009-07-28 Thread rb
n attach before any of my code gets run. That is I select 'attach' from Winpdb's main menu. Can Winpdb be automatically launched and attached from that code snippet? Hmm I was putting it into web2py so that the seb2py process would show up in the 'attach' list in Winpdb. May

[web2py:27522] Re: web2py development and deployment

2009-07-28 Thread rb
this code snippet into web2py.py and then WinXP could attach to it. Debugging can now proceed. WinXP looks good. But I'm not crazy about having to modify code in web2py.py in order to do debugging. I've never used a debugger before that forced me to modify code.

[web2py:27492] Re: Web2py development at a standstill - there is joy in Mudville!

2009-07-28 Thread rb
laptop uses wireless. I'm impressed that when the eth0 failed it actually got through on wlan0. But it was DARN slow. Putting it back to wlan0 fixes the problem and now I can happily step through both client and svr code and look at all my wonderful SOFTWARE bugs. --- Rb "I'll

[web2py:27491] Re: Web2py development at a standstill

2009-07-28 Thread rb
rtual) boxes. Putting it back on Bridged mode of course means that *nothing* works now. Are we having fun yet? -- Rb Oh yeah. I put this error into the "stupid" category. ***Sigh*** (fingers and eyes crossed that this IS the problem) On Jul 27, 11:20 pm, mdipierro wrote: > Why sett

[web2py:27484] Re: Table reference question

2009-07-27 Thread rb
first two lines are often combined into: rows = db(db.tasks.student_id==db.student.student_id).select (db.tasks.ALL, db.student.first_name) --- Rb PS. it's all in the Programmer's Guide pdf. (There's a new version coming out shortly). On Jul 27, 8:12 pm, Alastair Medford wrote:

[web2py:27483] Re: web2py development and deployment

2009-07-27 Thread rb
less expensive than the dead-tree version) and I highly recommend you get it. There is a new version about to come out so wait for that but *definitely* get the book. What else? -- Rb On Jul 27, 8:59 pm, Randell wrote: > Hi guys, > > How do you setup your web2py development envi

[web2py:27479] Re: should I be decorating xmlrpc functions?

2009-07-27 Thread rb
how would I decorate this? @services.xmlrpc def xrGetColDefs( ): pass Err... what is this 'services' in the code example? Do I have this decoration correct? 2. What is a good timeout for the webserver for xmlrpc functions? Any idea? --- Rb On Jul 27, 6:01 pm, mdipierro wrote: > You s

[web2py:27478] Re: Web2py development at a standstill

2009-07-27 Thread rb
he app that used to work. This web server beastie does NOT play nice when it fails. --- Rb *sigh* On Jul 27, 6:03 pm, mdipierro wrote: > NO. Running web2py as root is a very bad idea. > > Your problem does not look like a web2py problem but, assuming it is, > it is possible tha

[web2py:27462] should I be decorating xmlrpc functions?

2009-07-27 Thread rb
mfrpc, rss, csv """ return service() Chapter 10 of the manual gives a brief example of how to use xmlrpc, but it does not mention the use of any decorator (like "@services.xmlrpc"). In fact, "services()" is not even mentioned. What is this?

[web2py:27461] Web2py development at a standstill

2009-07-27 Thread rb
Arghhh I have been using eclipse (successfully up til now) to run the web2py svr (ubuntu 9.04 desktop) on a lan address of 192.168.0.155, connecting to a winXP client, also on the LAN. This allowed me to single step through my controller code and it was working... beautifully... I thi

[web2py:27415] Re: default colour

2009-07-26 Thread rb
uot;database administration" feature. It rings up a trouble ticket and shows where the code failed. Very nice. -- Rb (still stuck in WTF-land) On Jul 25, 5:29 am, Jason Brower wrote: > I used pydev for a while.  But when I am running off the server, have > you ever concidered using th

[web2py:27355] Re: default colour

2009-07-24 Thread rb
xWidgets UI and eric is Qt centered. I'm doing a wxWidget app so I'll probably side with SPE here. Amaya... OMG! Whoa... lots to review here. Thx so much. nicEdit ?? What is that? Oh... back to google... I think I'll have the editor choice pared down to a mere 5317 or so by night&#x

[web2py:27348] Re: default colour

2009-07-24 Thread rb
s in. Hmmm I'll have to look around some, I guess. -- On Jul 24, 8:12 pm, Jason Brower wrote: > I have asked this one before.  I actually, got really used to using my > own editor. > Regards, > Jason > > On Fri, 2009-07-24 at 14:19 -0700, rb wrote: > > Can anyone tell

[web2py:27336] update collision

2009-07-24 Thread rb
to lock it. If this collision happens in my controller code, what happens? Is an exception thrown or what is the return value/ status from the record_update fiunction? I need to catch this error to allow a retry. --- Rb --~--~-~--~~~---~--~~ You received this messa

[web2py:27332] default colour

2009-07-24 Thread rb
Can anyone tell me how to change the default colour of the cursor in the web-edit of files? On my systems the cursor colour against the background is almost impossible to see. Currently I must turn of highlighting when editing so that I can see where I am. --~--~-~--~~~--

[web2py:27293] Can't see cursor

2009-07-23 Thread rb
ze? I have to continually switch between full screen and small screen with the save button. Thx, in advance. --- Rb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post

[web2py:27175] Re: temporary table

2009-07-22 Thread rb
If you are using SQLite then you could create a db in memory and keep your temp table there. You can create the table outside of web2py and then in your SQLDB call you can add the parameter migrate=False to import the db into web2py. -- Rb On Jul 22, 1:34 am, phneoix wrote: > how do i cre

[web2py:27069] Re: Getting the next record

2009-07-21 Thread rb
s the user to define indices outside of the DAL then must the user also turn off migration ? -- Rb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email

[web2py:27027] Re: Getting the next record

2009-07-21 Thread rb
s transportable as possible. I _think_ that things like table constraints are *not* very transportable using SQL - but I can do this using executesql() until the DAL provides such. I think the thing to do is to write some external (python) code to create the tables a

[web2py:27021] Re: Getting the next record

2009-07-20 Thread rb
#x27; function). What's the best way to test for record existence within the DAL ? Can I just do a 1>>> db(db.tbl.keyColumn==key).count() > 0 Is that efficient? -- Rb -- Rb On Jul 20, 3:18 pm, Hans Donner wrote: > Hi, > > 1. Currently web2py relies for this on the DB e

[web2py:26988] Re: Getting the next record

2009-07-20 Thread rb
ow about (2). For those (rare?) occasions where 2 could happen, does this lead to the problems that upset mister Codd? --- Rb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group

[web2py:26981] Re: Getting the next record

2009-07-20 Thread rb
Thx so much for your (quick) replies. It really helps to have a conversation sometimes. On Jul 20, 12:40 pm, Yarko Tymciurak wrote: > On Mon, Jul 20, 2009 at 2:27 PM, rb wrote: > > > No, what is an "ordering" table? > > YOU create a db table wher

[web2py:26962] Re: Getting the next record

2009-07-20 Thread rb
e no idea how thsi should work. On Jul 20, 12:14 pm, Yarko Tymciurak wrote: > On Mon, Jul 20, 2009 at 2:07 PM, rb wrote: > > > Oops. I made a small mistake. Isn't it true that I could get the Next > > record (of a table having the 'name' field as its primary k

[web2py:26958] Re: Getting the next record

2009-07-20 Thread rb
rows[0] ? And to get the last record could I use: rows = db().select(db.table.ALL, orderby=~db.table.name, limitby= (0,1)) with the last record being in rows[0] ? On Jul 20, 11:57 am, rb wrote: > I am a bit flummoxed over dbs that insist on using an "id" field as > their prim

[web2py:26957] Getting the next record

2009-07-20 Thread rb
I am a bit flummoxed over dbs that insist on using an "id" field as their primary key. Specifically I would like to be able to access records via a more "btrieve" or old-style "ordered set" mode of GetFirst, Get Prev, GetNext, GetLast. The web2py manual gives a neat trick to paginate records which

[web2py:26563] Re: Version 1.65.3 (2009-07-12 17:32:25) for Windows: download corrupt?

2009-07-15 Thread rb
dn.microsoft.com/en-us/library/aa385103%28VS.85%29.aspx I thought the problem could be my own code (*probably is*), but it fails only when downloading multiple copies of the same file. Of course the problem could be something like file permissions, etc. I mention this only because it sounds su

[web2py:26534] Re: Where's the roadmap?

2009-07-14 Thread rb
Err.. I'm new to web2py. What is it's history? Where did it begin? What was the vision/impetus? On Jul 14, 4:51 pm, lpg wrote: > I’m interested in using web2py for some business/enterprise > applications, but other collaborators of mine have reservations about > web2py because it is a new framew

[web2py:26314] Re: New book. Chapters 6,7,8 again

2009-07-11 Thread rb
ean that the first field is the dominant and the second field is the minor field in the sorting order? Is it the default ordering of value content (string order, numeric order) of the fields that are included in the or'ing? So if I wanted to sort first by "id" in the example above, I w

[web2py:26279] Re: Best Practices - Exception Handling for CRUD

2009-07-11 Thread rb
Isn't it true that the choice between using a return error code and using the exception mechanism is decided by whether the result is expected or not? If record_not_found is a common, reasonably expected outcome then maybe it is better to use a return code to signal this so that the logic to deal

[web2py:26222] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread rb
verrun the stack) you have just borked your system. While your mileage may vary, from a BSOD to a nasty worded MessageBox from the OS, still, it is definitely something which "is NOT a good thing." -- my 3 cents. Rb. On Jul 10, 2:19 pm, eric cs wrote: > They compare Ruby 1.9 w

[web2py:26167] Re: DAL remote control

2009-07-10 Thread rb
On Jul 10, 5:48 am, Fran wrote: > On Jul 10, 9:40 am, rb wrote: > > > I don't have the resources for ajax thin client programming. I'll > > stick with the trials of deploying the thick client. > > I don't think you need full-blown GWT to have an AJAX c

[web2py:26166] Re: DAL remote control

2009-07-10 Thread rb
*selectFlds) return rows.response --- On Jul 10, 6:19 am, mdipierro wrote: > There is no eval in DAL. Actually b) is safer. The overhead is > negligible compared to the database IO times. You are doing the right > thing > > On Jul 10, 1:55 am, rb wrote: > > > Thx fo

[web2py:26110] Re: DAL remote control

2009-07-10 Thread rb
ng together - and I'm just starting (in python). I've still got to watch out for the speed of communication issue but that's tomorrow's problem and there won't be a tomorrow if I have to use ajax. But again, I'm kinda new to all this stuff, so I stand to be corrected if I

[web2py:26107] Re: SQLite table constraints and which model files are run?

2009-07-10 Thread rb
> > 2) I'm confused as to which models get run when a controller is > > accessed. If I have db.py and uom.py models and I access the uom > > controller, what happens? From stepping thru the debugger I saw db.py > > get run first, then uom.py and then uom.py again (weird). I've > > simplified thing

[web2py:26105] DAL remote control

2009-07-09 Thread rb
king. My questions are: i) am I missing the obvious? Is there a much simpler/better way to do this? ii) does the DAL add much overhead? On Jul 9, 9:21 pm, mdipierro wrote: > On Jul 9, 11:04 pm, rb wrote: > > > Hi all, > > > I'm using Web2py to serve a wxPython th

[web2py:26095] SQLite table constraints and which model files are run?

2009-07-09 Thread rb
one (db.py) file for now, but I'm wondering if the infrastructure's intent is to run all model files upon each and every controller access. Oh, my access of the controller is via XMLRPC function (if that changes anything). Thx in advance, Rb. --~--~-~--~~~---

[web2py:26094] Re: new chapters for the book CRUD and AUTH

2009-07-09 Thread rb
ght switch to postgres. I'm trying to understand how best to create my tables (eg. how to specify a UNIQUE constraint over two or three fields for my primary key?). Oh gosh, I shouldn't post my questions here. Anyway, I'd like to help if I can. -- Rb On Jul 6, 8:04 pm, mdipierro wr