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

2009-09-29 Thread rb
, 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 mdipie...@cs.depaul.edu wrote: Because model are re-read at every request, modules are not. I am not sure

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

2009-09-29 Thread rb
, 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 mdipie...@cs.depaul.edu wrote: Because model are re-read at every request, modules are not. I am not sure

[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. To post

[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 mdipie...@cs.depaul.edu wrote: I do not know. Can you post some code to reproduce it? On Sep 11, 2:07 pm, rb rbspg...@gmail.com wrote

[web2py:30748] xmlrpc errors in 1.65.5

2009-09-11 Thread rb
xmlrpc client app I get the above traceback. Help! -- Rb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group

[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 rbspg...@gmail.com 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 make a xmlrpc

[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 mdipie

[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 rbspg

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

2009-09-02 Thread rb
. -- Rb On Sep 2, 1:15 pm, weheh richard_gor...@verizon.net wrote: Thanks, waTR, very constructive (LOL). I see this thread has devolved about as rapidly as I expeted it would. At this point, unless there's a tsunami of support, it looks like poor Max is going to get voted off the island. Maybe

[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 mdipie...@cs.depaul.edu 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 *') instead of a database

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

2009-08-18 Thread rb
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 mdipie...@cs.depaul.edu wrote: It is not a bug. db(query) query can be a DAL query or a SQL query (string). mind that what are you doing is dangerous

[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: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 all

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

2009-08-13 Thread rb
distant clients and local (stateful) processes? On Aug 13, 1:14 pm, weheh richard_gor...@verizon.net wrote: To add some levity to this important topic, rb is also, unfortunately, confused about the meaning of wherefore art thou, oh session attribute?, which I believe him as asking where

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

2009-08-12 Thread rb
) 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. --- Rb On Aug 11, 10:39 pm, mdipierro mdipie

[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 parameters

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

2009-08-12 Thread rb
... ) === Rb web programming is haard. On Aug 12, 12:23 am, Yarko Tymciurak yark...@gmail.com wrote: Ahem Knock, knock!  --- says the browser... Whose there?  --- says the server... If the request (browser)  identifies itself with information given it by the server as a continuation from

[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 rbspg...@gmail.com wrote: In my think-client xmlrpc protocol to web2py svr code I am trying

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

2009-08-11 Thread rb
the xmlrpc protocol does not use cookies to maintain persistence. On Aug 11, 5:02 pm, rb rbspg...@gmail.com 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 first start

[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 richar...@gmail.com wrote: try auth.settings.expiration = X On Aug 7, 2:35 pm, rb rbspg...@gmail.com wrote: Section 4.8 from the Web2py Manual states that session data remains until/unless the user deletes the session

[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

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

2009-07-28 Thread rb
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 mdipie...@cs.depaul.edu wrote: Why setting these parameters? -n 1 -o

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

2009-07-28 Thread rb
. 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 take 'configuration' for 1000, Alex

[web2py:27522] Re: web2py development and deployment

2009-07-28 Thread rb
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. Am I missing the obvious? -- Rb

[web2py:27529] Re: web2py development and deployment

2009-07-28 Thread rb
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. Maybe I don't know enough about this. --- Rb On Jul 28, 3:02

[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

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

2009-07-27 Thread rb
beastie does NOT play nice when it fails. --- Rb *sigh* On Jul 27, 6:03 pm, mdipierro mdipie...@cs.depaul.edu 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 that you run it as root (not good) and not you

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

2009-07-27 Thread rb
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 mdipie...@cs.depaul.edu wrote: You should not decorate call

[web2py:27483] Re: web2py development and deployment

2009-07-27 Thread rb
to come out so wait for that but *definitely* get the book. What else? -- Rb On Jul 27, 8:59 pm, Randell josephrandell.benavi...@gmail.com wrote: Hi guys, How do you setup your web2py development environment? Of course, we all know that we don't need complicated setup to develop web2py since

[web2py:27484] Re: Table reference question

2009-07-27 Thread rb
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 alastairmedf...@gmail.com wrote: I've been

[web2py:27415] Re: default colour

2009-07-26 Thread rb
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 encomp...@gmail.com wrote: I used pydev for a while.  But when I am running off the server, have you ever concidered using the -X feature? I use that often when

[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:27336] update collision

2009-07-24 Thread rb
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 message because

[web2py:27348] Re: default colour

2009-07-24 Thread rb
some, I guess. -- On Jul 24, 8:12 pm, Jason Brower encomp...@gmail.com 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 me how to change the default colour of the cursor

[web2py:27293] Can't see cursor

2009-07-23 Thread rb
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 to this group, send email to web2py@googlegroups.com

[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 neo.stea...@gmail.com

[web2py:27069] Re: Getting the next record

2009-07-21 Thread rb
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 to web2py@googlegroups.com

[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:26958] Re: Getting the next record

2009-07-20 Thread rb
] ? 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 rbspg...@gmail.com wrote: I am a bit flummoxed over dbs that insist on using an id field as their primary key. Specifically

[web2py:26962] Re: Getting the next record

2009-07-20 Thread rb
. On Jul 20, 12:14 pm, Yarko Tymciurak yark...@gmail.com wrote: On Mon, Jul 20, 2009 at 2:07 PM, rb rbspg...@gmail.com 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 key) using rows = db(db.table.name

[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 yark...@gmail.com wrote: On Mon, Jul 20, 2009 at 2:27 PM, rb rbspg...@gmail.com wrote: No, what is an ordering table? YOU create a db table where YOU impose your

[web2py:27021] Re: Getting the next record

2009-07-20 Thread rb
just do a 1 db(db.tbl.keyColumn==key).count() 0 Is that efficient? -- Rb -- Rb On Jul 20, 3:18 pm, Hans Donner hans.don...@pobox.com wrote: Hi, 1. Currently web2py relies for this on the DB engine 2. Can always happen. There is no way to prevent this. The main risk with using

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

2009-07-15 Thread rb
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 suspiciously like the other complaints above. -- Rb. --~--~-~--~~~---~--~~ You received

[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 lucas.gei...@gmail.com wrote: I’m interested in using web2py for some business/enterprise applications, but other collaborators of mine have reservations about web2py

[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:26314] Re: New book. Chapters 6,7,8 again

2009-07-11 Thread rb
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 would list it first in the or'ing ? --- Rb On Jul 11, 7:57 am, Massimo Di

[web2py:26105] DAL remote control

2009-07-10 Thread rb
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 mdipie...@cs.depaul.edu wrote: On Jul 9, 11:04 pm, rb rbspg...@gmail.com wrote: Hi all, I'm using Web2py to serve a wxPython thick

[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 things down to

[web2py:26110] Re: DAL remote control

2009-07-10 Thread rb
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'm being naive... ;-) --- Rb On Jul 10, 12:31 am, Yarko Tymciurak yark...@gmail.com wrote: I just have to point this out:  by definition (at least some) thick clients

[web2py:26166] Re: DAL remote control

2009-07-10 Thread rb
 am, mdipierro mdipie...@cs.depaul.edu 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 rbspg...@gmail.com wrote: Thx for the speedy reply. Here's another question: 3

[web2py:26167] Re: DAL remote control

2009-07-10 Thread rb
On Jul 10, 5:48 am, Fran francisb...@googlemail.com wrote: On Jul 10, 9:40 am, rb rbspg...@gmail.com 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 client

[web2py:26222] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread rb
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 eeri...@gmail.com wrote: They compare Ruby 1.9 with Python, than a Python guy change the algorithm from being

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

2009-07-09 Thread rb
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 mdipie...@cs.depaul.edu wrote: Thank you. I am going to work on this probably one or two

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

2009-07-09 Thread rb
, 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. --~--~-~--~~~---~--~~ You received this message