[web2py:21939] CAS question(s)

2009-05-16 Thread John Pontious
I am evaluating CAS for inclusion in a project I am working on, and I am running into a couple of problems. I seem to be having a problem with the model name "email.py", because at least in my environment if it getting loaded before the normal email python module. So, when I attempt to test just

[web2py:21940] Re: form[][][].append()

2009-05-16 Thread annet . vermeer
Massimo, > Is this your own register function? No, it's tools.py's register function. > If not, what version are you using? Version 1.61.4 > How are you calling it? def register(): return dict(form=auth.register()) Denes, I used Safari's Web Inspector to visualize the form's struct

[web2py:21941] Re: open issues?

2009-05-16 Thread virhilo
The 'Remove compiled' shouldn't be visible in we have *only* compiled version of application. Here is the patch for 'admin' application: http://virhilo.spof.pl/~virhilo/rm_compiled.patch On 15 Maj, 22:43, mdipierro wrote: > BTW... you can test the latest at > > http://www.web2py.com/examples/st

[web2py:21942] Re: open issues?

2009-05-16 Thread virhilo
The 'Remove compiled' shouldn't be visible in we have *only* compiled version of application. Here is the patch for 'admin' application: http://spof.pl/~virhilo/rm_compiled.patch On 15 Maj, 22:43, mdipierro wrote: > BTW... you can test the latest at > > http://www.web2py.com/examples/static/1.6

[web2py:21943] Feature request: Select browser

2009-05-16 Thread Jason Brower
or if a browser should open at all. If you like, I can make you a fancy shmancie front-end in gtk. Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this

[web2py:21944] Re: sqlite and threading

2009-05-16 Thread Kacper Krupa
>From trunk i still get: ProgrammingError: Cannot operate on a closed database. On 15 Maj, 21:07, mdipierro wrote: > This is a bit can of worms. > > Not all database divers are thread safe (in the sense that they allows > you to use the same open connection safely in multiple threads). > sqlite

[web2py:21945] Re: form[][][].append()

2009-05-16 Thread DenesL
Annet, if you already have a tool like that in Safari it should be enough, I have not used Safari so I can not comment. I mistakenly assumed you were not using any. Regarding the BR, I was referring to your apply_cms code. There you added the BR using form[0][7][0].append(BR()) In any case, the

[web2py:21946] Re: open issues?

2009-05-16 Thread mdipierro
Thanks. Excellent point. I modified your patch since I am not sure any () is compatible with 2.4 but it is in trunk. Massimo On May 16, 4:24 am, virhilo wrote: > The 'Remove compiled' shouldn't be visible in we have *only* compiled > version of application. > Here is the patch for 'admin' > ap

[web2py:21947] Items don't update quick enough...

2009-05-16 Thread Jason Brower
I have a form that added items to a list that I have listing on the right of the form on the same page. When I add the item it says the item was added successfully, but I don't see the item until I refresh the page. What would you do? Regards, Jason --~--~-~--~~~---

[web2py:21948] Re: Feature request: Select browser

2009-05-16 Thread mdipierro
Are you talking in the Tk UI? I can add a flag to do enable/disable it. Can you make a fancy-shmancie front-end in Tk instead? Distributing a gtk binary is a problem. What features would you add? Massimo On May 16, 6:37 am, Jason Brower wrote: > or if a browser should open at all. > If you li

[web2py:21949] Re: sqlite and threading

2009-05-16 Thread mdipierro
Quote from my previous answer: - do not access the db object after the thread that created the object has returned (because the connection is automatically closed and transaction committed). Massimo On May 16, 7:51 am, Kacper Krupa wrote: > From trunk i still get: > ProgrammingError: Cannot op

[web2py:21950] Re: Items don't update quick enough...

2009-05-16 Thread carlo
my 2 cents: I would make an ajax get/post with a callback function which serves the updated html or json data. This is what I usually do to populate dynamically selects controls. carlo On 16 Mag, 15:54, Jason Brower wrote: > I have a form that added items to a list that I have listing on the >

[web2py:21951] Re: form[][][].append()

2009-05-16 Thread mdipierro
Please check if the new register in trunk is satisfactory. Massimo On May 16, 2:26 am, annet.verm...@gmail.com wrote: > Massimo, > > > Is this your own register function? > > No, it's tools.py's register function. > > > If not, what version are you using? > > Version 1.61.4 > > > How are you cal

[web2py:21953] Custom forms in user management

2009-05-16 Thread Cristian Andrei
Hello, I'm taking part in developing an application by using Web2Py. We got to a point where we want to customize some forms that are automatically exposed. Case in hand, user authentication with the help of the AUTH class. We used the tutorial found at http://mdp.cti.depaul.edu/examples/defaul

[web2py:21952] web2py Enterprise Web Framework. ...

2009-05-16 Thread bratty
web2py TM Enterprise Web Framework. Free and open source full-stack enterprise framework for agile development of fast, secure and portable database-driven ... Click the bellow link to continue….. *** http://www.s1.webstarts.com

[web2py:21954] Re: Feature request: Select browser

2009-05-16 Thread AchipA
You don't need make it a binary, python has perfectly good gtk bindings. It can always do a fallback. A bigger problem is consistency/ maintenance of a larger number of front-ends. I actually made one for me in Qt (my weapon of choice in the GUI arena), but for everyday use that would be an overki

[web2py:21955] Re: CAS question(s)

2009-05-16 Thread weheh
My experience with naming any python program "email.py" is that you shouldn't. That seems to be a reserved name, which conflicts with ... you guessed it: email. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2p

[web2py:21956] Re: Custom forms in user management

2009-05-16 Thread mdipierro
Hi Christian, assuming the controller is def user(): return dict(form=Auth()) the view is views/default/user.html (you have to create it). The forms are generated in gluon/tools.py (you should not change this). In user.html you add at the bottom something like: {{if request.args[0]=='regis

[web2py:21957] Re: CAS question(s)

2009-05-16 Thread mdipierro
I agree. I will post a new CAS within the week. On May 16, 9:46 am, weheh wrote: > My experience with naming any python program "email.py" is that you > shouldn't. That seems to be a reserved name, which conflicts with ... > you guessed it: email. --~--~-~--~~~---~--~

[web2py:21958] Re: form[][][].append()

2009-05-16 Thread annet . vermeer
Massimo, It is almost satisfactory. The label reads: Password: I think it should read something like: Verify password: The new register() is working when you use the default auth_user table, however, when you use a custom auth_user table it breaks. In my case I have the following table. When I

[web2py:21959] Re: bug in form behavior?

2009-05-16 Thread mgbeli...@gmail.com
Yes, I'm downloading the trunk version now and testing it out. I'll let you know how it goes Massimo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to

[web2py:21960] Re: Feature request: Select browser

2009-05-16 Thread Jason Brower
We could setup many of the options that are important to change but can be a little complicated with a text editor. Selecting your preferable editor. Starting a service. Adding task bar icon with popup if needed. Perhaps even nice cairo charts of information. We could even have nice debug informat

[web2py:21961] Re: form[][][].append()

2009-05-16 Thread annet . vermeer
Denes, > if you already have a tool like that in Safari it should be enough, I > have not used Safari so I can not comment. > I mistakenly assumed you were not using any. As a reply to one of my earlier posts, you suggested using Firefox and Firebug, I compared their features to Safari's and cam

[web2py:21962] Re: cron on windows and osx

2009-05-16 Thread Iceberg
Just gave a try. At least with my "crontest" app, the hardcron works with the out-of-box web2py_win.zip 1.62rc4 ! Wow! Never have that feeling! Nice work, Achipa! (By the way, what was the problem?) On May14, 2:51am, mdipierro wrote: > Have you had problems with cron on the windows and osx bi

[web2py:21963] Re: Items don't update quick enough...

2009-05-16 Thread Jason Brower
Yeah, that was my thought, use jquery.form.js and and a method to reload the list. json I am still getting used to. But it sounds catchy! -- Jason (or is it json) On Sat, 2009-05-16 at 07:06 -0700, carlo wrote: > my 2 cents: I would make an ajax get/post with a callback function > which serves

[web2py:21964] Re: form[][][].append()

2009-05-16 Thread mdipierro
Please check in trunk again in 5minutes. On May 16, 10:44 am, annet.verm...@gmail.com wrote: > Massimo, > > It is almost satisfactory. > > The label reads: Password: I think it should read something like: > Verify password: > > The new register() is working when you use the default auth_user > ta

[web2py:21965] Re: Feature request: Select browser

2009-05-16 Thread mdipierro
I would like to see all these things but I'd prefer to have admin pages to handle most of them when possible instead of a gtk UI. On May 16, 11:02 am, Jason Brower wrote: > We could setup many of the options that are important to change but can > be a little complicated with a text editor. > S

[web2py:21966] Re: Can't get web2py to run as Windows service

2009-05-16 Thread Iceberg
On May15, 10:01pm, mdipierro wrote: > On May 15, 1:51 am, weheh wrote: > > > Iceberg mentions: > > > On May 7, 10:12 am, Iceberg wrote: > > > > So the following trick might be worth looking at. I build another > > > web2py.exe by py2exe, to hide the web2py.exe 's console when running. > > > In

[web2py:21967] Re: Can't get web2py to run as Windows service

2009-05-16 Thread mdipierro
Somehow I missed that post. Can you send a patch with the trick so that I can look at what you did? On May 16, 11:27 am, Iceberg wrote: > On May15, 10:01pm, mdipierro wrote: > > > > > On May 15, 1:51 am, weheh wrote: > > > > Iceberg mentions: > > > > On May 7, 10:12 am, Iceberg wrote: > > >

[web2py:21968] Feature Request: Pagination

2009-05-16 Thread Jason Brower
It would be nice to have integrated pagination, or perhaps some documentation on how it's done. And both would be a dream. :D I am sure this has been brought up before, but I want to plug it again as I really would like this feature in time for my thesis. ;) Regards, Jason Brower --~--~---

[web2py:21969] Re: Can't get web2py to run as Windows service

2009-05-16 Thread mdipierro
Iceberg, I need your help. The import_all.py file was including expliclty all required packages so that setup_exe would find them. I accepted a patch that refactored import_all and may have broken setup_exe. Can you check? Instead of reverting import_all, can you suggest how to modify setup_exe

[web2py:21970] Re: Feature request: Select browser

2009-05-16 Thread AchipA
The Qt thingy is good in this regard as it is perceived by the user as a single application. I'm opening a QWebView widget (which is essentially a webkit browser). So you see only one app, there is no dos box/console stuff, just the quasi-browser which is the application at the same time. Also, wh

[web2py:21971] Re: w2p is here

2009-05-16 Thread Iceberg
In my Chrome 1.0.154.65, the downloaded "pack all" file has an unwanted extend name, such as "web2py.app.blah.w2p.gz". This of course chokes the "upload app" function later. But when I try IE7 and Firefox3, the downloaded app ends with "w2p" as expected. So is this a Chrome issue? Does anybody m

[web2py:21972] Re: bug in form behavior?

2009-05-16 Thread mgbeli...@gmail.com
Yes Massimo, it does indeed work in the trunk and I haven't run into any bad side effects either. Thanks for the speedy fix! -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To pos

[web2py:21973] Re: web2py Enterprise Web Framework. ...

2009-05-16 Thread Yarko Tymciurak
a new phase of creative spam Unless someone finds redeemeing aspect to this, we'll remobe and ban Thanks, - Yarko On Sat, May 16, 2009 at 8:14 AM, bratty < sathya.sivajitheboss.nath...@gmail.com> wrote: > > web2py TM Enterprise Web Framework. Free and open source full-stack > enterprise

[web2py:21974] Re: web2py Enterprise Web Framework. ...

2009-05-16 Thread Jason Brower
Spam a way, thank you very much! Regards, Jason On Sat, 2009-05-16 at 11:58 -0500, Yarko Tymciurak wrote: > a new phase of creative spam > > Unless someone finds redeemeing aspect to this, we'll remobe and > ban > > Thanks, > - Yarko > > On Sat, May 16, 2009 at 8:14 AM, bratty > wrot

[web2py:21975] Re: open issues?

2009-05-16 Thread virhilo
My version is ~2 times faster, but you right-there are no any() in python 2.4 :) On 16 Maj, 15:53, mdipierro wrote: > Thanks. Excellent point. I modified your patch since I am not sure any > () is compatible with 2.4 but it is in trunk. > > Massimo > > On May 16, 4:24 am, virhilo wrote: > > > T

[web2py:21976] Re: Feature Request: Pagination

2009-05-16 Thread virhilo
maybe look at: http://mdp.cti.depaul.edu/AlterEgo/default/show/63 and http://mdp.cti.depaul.edu/AlterEgo/default/show/95 On 16 Maj, 18:39, Jason Brower wrote: > It would be nice to have integrated pagination, or perhaps some > documentation on how it's done.  And both would be a dream. :D > I am

[web2py:21977] Re: Feature Request: Pagination

2009-05-16 Thread TheDude
Do those examples use the OFFSET paramter? I'm not sure how this affects Oracle or PGSQL, but in MySQL this could be considered a slow query after having 20,000+ rows and exponentially grows from there (I know pgsql has some start-up cost performing this). May want to keep in mind that a better al

[web2py:21978] Re: CAS question(s)

2009-05-16 Thread John
Sounds good to me :), I will keep an eye out for the update, and test in my environment when it is ready. Any thoughts on my "print" question (#2)? It only effects folks running behind wsgi and as far as I know. Though it seems that it might be a good idea to stay away from using stdout to sta

[web2py:21979] Re: psycopg2-2.0.10 install linux ,help me

2009-05-16 Thread kenboo
This is a bug in setup.py of psycopg2 which is only exposed when you do not have libpq-dev installed. Look at setup.py line 219 exception (Warning, w): It has to be exception Warning, w: Anyway like people here say, install libpq-dev and go on your installation. Kenji Noguchi --~--~

[web2py:21980] The wike at the university has expired / invalid

2009-05-16 Thread nonidentity
mdp.cti.depaul.edu uses an invalid security certificate. The certificate is not trusted because it is self signed. The certificate is only valid for Massimo Di Pierro. The certificate expired on 01/03/09 06:56. (Error code: sec_error_expired_issuer_certificate) Of course this can be a conious d

[web2py:21981] Re: The wike at the university has expired / invalid

2009-05-16 Thread Yarko Tymciurak
This is known. For now, you can safely add an exception for this to your browser. There are discussions on the group (search for "Secure Connection"). On Sat, May 16, 2009 at 1:13 PM, nonidentity wrote: > > mdp.cti.depaul.edu uses an invalid security certificate. > > The certificate is not trus

[web2py:21982] Key Error auth_user

2009-05-16 Thread npye
Hello, I'm trying to define auth_user as a foreign key in another db table, so that I can have a drop down of users ... keep getting a key error all the authorization tables have created correctley in my DB. Why can I access the auth_user table ?? db.py SQLField("id_user", db.auth_user) d

[web2py:21983] Re: Key Error auth_user

2009-05-16 Thread Yarko Tymciurak
Just a minimalist sanity check against recent trunk, following (minimally) the example on http://www.web2py.com/examples/default/tools: ~/workspace/web2py/devel$ python web2py.py -S welcome default applications appear to be installed already web2py Enterprise Web Framework Created by Massimo Di Pi

[web2py:21984] Re[2]: Can't get web2py to run as Windows service

2009-05-16 Thread Iceberg
Hi Massimo, I spend some time on the issue. The refactor you mentioned must be this one. http://code.google.com/p/web2py/source/diff?spec=svn922&r=910&format=side&path=/trunk/gluon/import_all.py&old_path=/trunk/gluon/import_all.py&old=707 In my very old memory, py2exe can automatically handle

[web2py:21985] Re: w2p is here

2009-05-16 Thread Markus Gritsch
On Sat, May 16, 2009 at 6:53 PM, Iceberg wrote: > > In my Chrome 1.0.154.65, the downloaded "pack all" file has an > unwanted extend name, such as "web2py.app.blah.w2p.gz". This of course > chokes the "upload app" function later. @Massimo: How about dropping the extension .w2p and just use .tar.

[web2py:21986] Re: CAS question(s)

2009-05-16 Thread mdipierro
The app should stay away from print. I will remove them from CAS On May 16, 1:38 pm, John wrote: > Sounds good to me :), I will keep an eye out for the update, and test > in my environment when it is ready. > > Any thoughts on my "print" question (#2)?  It only effects folks > running behind wsg

[web2py:21987] Re: Key Error auth_user

2009-05-16 Thread mdipierro
Probably you are trying to access it before auth.define_tables() On May 16, 1:53 pm, npye wrote: > Hello, > > I'm trying to define auth_user as a foreign key in another db table, > so that I can have a drop down of users ... keep getting a key error > all the authorization tables have created c

[web2py:21988] Re: Can't get web2py to run as Windows service

2009-05-16 Thread mdipierro
The reason I am still able to make executables is that I do not re- make them. I just replace the pyc files in Library.zip Unless there is a way to pass the list of dependencies to setup_exe than we are unable to handle future version of web2py that depend on python packages not already included.

[web2py:21989] Re: w2p is here

2009-05-16 Thread mdipierro
Because some OSes (like Mac) when they download a tar.gz they try to unzip it. For newbies this is a problem. On May 16, 3:14 pm, Markus Gritsch wrote: > On Sat, May 16, 2009 at 6:53 PM, Iceberg wrote: > > > In my Chrome 1.0.154.65, the downloaded "pack all" file has an > > unwanted extend name

[web2py:21990] db query question

2009-05-16 Thread JohnMc
Been futzing with this for a hour so I am missing something. This construct works -- rows = db(db.notes.id==1).select() Returning a single rows of content that I expected. However this does not -- rows = db(db.notes.id==request.args[0]).select() where args[0] equals 1, but fails returning an

[web2py:21991] Re: db query question

2009-05-16 Thread Horst Herb
On Sun, May 17, 2009 at 8:07 AM, JohnMc wrote: > rows = db(db.notes.id==request.args[0]).select() > > where args[0] equals 1, but fails returning an empty rows. Even tried > converting to int, same result. Works for me. Have you checked what request.args[0] is? eg by simply "print int(request.a

[web2py:21992] LMS, moodle, legacy DBs, pinax-lms

2009-05-16 Thread Skylar Saveland
Any thoughts on a web2py-based Learning Management System? I am perhaps to be tasked with some online learning services and am looking for a way to get some Python in on the scene. Is there a way/tool (like in Django to inspectdb) to "put" the web2py DAL "on" an existing db. It might be a bit a

[web2py:21993] Re: db query question

2009-05-16 Thread JohnMc
Horst, Thanks for the suggestion. My problem lies elsewhere, in my input form, its not posting to the DB so I have to go check that. But thanks for the lead. It made me question whether my problem is elsewhere. On May 16, 5:45 pm, Horst Herb wrote: > On Sun, May 17, 2009 at 8:07 AM, JohnMc wro

[web2py:21994] Re: w2p is here

2009-05-16 Thread John
For what it is worth, Java does a similar thing with jar <-> zip (though taking command line options like tar would) On May 16, 4:14 pm, Markus Gritsch wrote: > On Sat, May 16, 2009 at 6:53 PM, Iceberg wrote: > > > In my Chrome 1.0.154.65, the downloaded "pack all" file has an > > unwanted exte

[web2py:21995] Re: db query question

2009-05-16 Thread JohnMc
Have you checked what request.args[0] is? Yes I had. Have it working. My data set was smaller than I expected so I was doing a query outside the range of what was in the data set. On May 16, 5:45 pm, Horst Herb wrote: > On Sun, May 17, 2009 at 8:07 AM, JohnMc wrote: > > rows = db(db.notes.id=

[web2py:21996] Re: LMS, moodle, legacy DBs, pinax-lms

2009-05-16 Thread mdipierro
Incidentally I am co-chair of a University Committee in charge of choosing the next generation LMS for my university. Currently we used Blackboard 8.0. One of the LMS we are evaluating is Moodle. I developed KPAX almost one year ago as a proof of concept trying to convince colleagues that we could

[web2py:21997] Re: LMS, moodle, legacy DBs, pinax-lms

2009-05-16 Thread mdipierro
Yes it is possible to put web2py on an existing database and there are multiple threads here on this. The bottom line is that you must have tables with an autoincrement integer key. You also must reference other tables via that key. On May 16, 5:48 pm, Skylar Saveland wrote: > Any thoughts on a

[web2py:21998] Re: Feature Request: Pagination

2009-05-16 Thread Jason Brower
Cool! thanks, Jason On Sat, 2009-05-16 at 10:15 -0700, virhilo wrote: > maybe look at: > http://mdp.cti.depaul.edu/AlterEgo/default/show/63 > and > http://mdp.cti.depaul.edu/AlterEgo/default/show/95 > > On 16 Maj, 18:39, Jason Brower wrote: > > It would be nice to have integrated pagination,

[web2py:21999] Re: w2p is here

2009-05-16 Thread Jason Brower
I know it was for him, but I like the idea of .w2p. File managers can have the ability to automatically install and run by double clicking. File selection can be very nice to and searching *.w2p. Regards, Jason On Sat, 2009-05-16 at 22:14 +0200, Markus Gritsch wrote: > On Sat, May 16, 2009 at

[web2py:22000] Re: Can't get web2py to run as Windows service

2009-05-16 Thread Iceberg
--- Original Message --- From:mdipierro Sender: web2py@googlegroups.com To: web2py Web Framework Date:Sat, 16 May 2009 13:24:29 -0700 (PDT) Subject: [web2py:21988] Re: Can't get web2py to run as Windows service --- > The reaso

[web2py:22001] Re: Can't get web2py to run as Windows service

2009-05-16 Thread mdipierro
fantastic can you do this for setup_app.py ? Massimo On May 16, 10:23 pm, Iceberg wrote: > --- Original Message --- > From:    mdipierro Sender: web2py@googlegroups.com > To:      web2py Web Framework > Date:    Sat, 16 May 2009 13:24:29 -0700 (PDT

[web2py:22002] Broken link...

2009-05-16 Thread Jason Brower
Noticed you had a broken link here... http://mdp.cti.depaul.edu/AlterEgo/default/show/95 the ORM link that goes here... http://mdp.cti.depaul.edu/examples/default/orm My part to help out, Jason --~--~-~--~~~---~--~~ You received this message because you are subsc

[web2py:22003] Re: Can't get web2py to run as Windows service

2009-05-16 Thread Iceberg
I don't have a Mac. But I assume what I did in setup_exe.py can be copied to setup_app.py without change, because I already use platform- independent style such as os.path.join() & os.sep. Again, you need to test. :-) Just one more tips. Try to define base_modules correctly according to python v

[web2py:22004] Re: Can't get web2py to run as Windows service

2009-05-16 Thread mdipierro
I posted your modification in trunk but I made a minor change and I could not test it since I do not have a windows machine available. Could you please check that I did no break it? I also attempted a new setup_app.py version but does not work for me. I get: >>> python setup_app.py py2app Traceb

[web2py:22005] Re: Broken link...

2009-05-16 Thread mdipierro
Thank you. Fixed. Massimo On May 16, 10:37 pm, Jason Brower wrote: > Noticed you had a broken link > here...http://mdp.cti.depaul.edu/AlterEgo/default/show/95 > the ORM link that goes here...http://mdp.cti.depaul.edu/examples/default/orm > My part to help out, > Jason --~--~-~--~~-

[web2py:22006] Re: Can't get web2py to run as Windows service

2009-05-16 Thread mdipierro
BTW... is this with or without console? I want the console. Massimo On May 16, 10:48 pm, Iceberg wrote: > I don't have a Mac. But I assume what I did in setup_exe.py can be > copied to setup_app.py without change, because I already use platform- > independent style such as os.path.join() & os.s

[web2py:22007] Re: Can't get web2py to run as Windows service

2009-05-16 Thread Iceberg
Hi Massimo, Some issues and fixes. 1. We still need to change web2py.py to get rid of the __file__ (at least when using py2exe), otherwise a web2py.exe will be generated but it just won't work. 2. I changed import_all.py a little. Get rid of the "os.path" cause it is really redundant and causi

[web2py:22008] Re: w2p is here

2009-05-16 Thread Álvaro Justen [Turicas]
On Sat, May 16, 2009 at 1:53 PM, Iceberg wrote: > In my Chrome 1.0.154.65, the downloaded "pack all" file has an > unwanted extend name, such as "web2py.app.blah.w2p.gz". This of course > chokes the "upload app" function later. > > But when I try IE7 and Firefox3, the downloaded app ends with "w2