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
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
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.
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
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:
(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
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
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
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
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
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
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)
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
> 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
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
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
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.
---
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
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
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
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
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
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
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
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.
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
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
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:
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
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
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
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?
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
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
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
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
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
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.
--~--~-~--~~~--
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
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
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
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
#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
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
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
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
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
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
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
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
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
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
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
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
*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
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
> > 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
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
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.
--~--~-~--~~~---
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
60 matches
Mail list logo