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
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
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
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
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
>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
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
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
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
--~--~-~--~~~---
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
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
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
>
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
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 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
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
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
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
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.
--~--~-~--~~~---~--~
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
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
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
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
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
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
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
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
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
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:
>
> >
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
--~--~---
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
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
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
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
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
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
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
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
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
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
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
--~--~
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
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
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
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
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
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.
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
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
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.
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
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
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
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
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
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
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=
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
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
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,
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
--- 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
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
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
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
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
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
--~--~-~--~~-
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
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
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
70 matches
Mail list logo