Thanks Massimo,
I forgot to mention I'm using the integrated rocket web server (not
mod_python, cgi or whatever). So I was just curious if there was a way
of sharing data between the hard cron thread and the thread where
the requests are run, without needing to serialize informate (picke-
Is there a way to display matching values or fields with matching
values in different color?
For example: red
I was thinking on doing this via css but don't know how to verify that
for instance: one or two - particular values - out of 4 (from search
form) matched those in DB.
On 22 Wrz,
Thanks for all your replies. It made me realise that there is still a
long way ahead for me... :)
On 22 September 2010 07:11, mdipierro mdipie...@cs.depaul.edu wrote:
Are you running web2py.py or wsgihandler? If you are starting
web2py.py you may want to comment
I am using the installation
On Sep 21, 11:01 pm, mdipierro mdipie...@cs.depaul.edu wrote:
I also also discovered users can vte for Pypi packages. I did not know
that.
Nor did I. Might be new.
Ok, so after cheking newcron.py I can see the main issue here is that
cron tasks are run in a totally independent process, via subprocess
module, so it's impossible to use threading shared data.
Has rocket a maximum request timeout? If not, I could use cron @reboot
to launch a request to a
I'm sorry to keep up the thread...do you think that replacing all the
redirects in the auth module, or overloading all decorators to raise
HTTP(404) instead of redirecting can be feasable/will work?
Right now web2py is packed with a really nice set of features(oauth,
openid, rss, csv, rtf, amf,
Hello!
my question: how i can to make that a timestamp Field save their value
in UTC -0400 ??
the server timezone is CDT (in summer) CST (in winter)
The server is a shared server so, I can't change the timezone...
Thanks in advance!
Pepe
Quoting chapter 8:
If object is a tablename then the permission can refer to the entire
table (record_id==0) or to a specific record (record_id0).
My guess it should be:
If object is a tablename then the permission can refer to the entire
table (record_id0) or to a specific record (record_id==0).
No, I think you are possibly looking at the meaning of record_id in a
different way than intended.
If the parameter record_id is 0 then the permission refers to all the
records in the table, If the record_id is 0 then it refers to the
record in the table whose id == record_id
On Sep 22, 1:33
Before I start complaining, thanks for the free software.
I just ran into some trouble with IS_NOT_IN_DB in a form. Change set
5a1355b3d0 made this return false for blank values. I don't know what
the motivation was for this change, but it broke my app.
My app is creating a custom form by
On Sep 22, 11:47 am, ron_m ron.mco...@gmail.com wrote:
No, I think you are possibly looking at the meaning of record_id in a
different way than intended.
Documentation edited to be explicit here.
I have some code and information about the sessions being lost...
This method is called every two seconds.
The printout is what I get. Notice... ON then OFF and repeated.
I am the only user on the system, I have only one browser tab open,
and I know that the file data it is pulling from is
Much clearer. Thanks!
On Sep 22, 1:10 pm, cjrh caleb.hatti...@gmail.com wrote:
On Sep 22, 11:47 am, ron_m ron.mco...@gmail.com wrote:
No, I think you are possibly looking at the meaning of record_id in a
different way than intended.
Documentation edited to be explicit here.
Hello all,
I have a deployed application. and by the time i need to add fields to
database so appended the new SQLField into my database and removed
Migrate = false
but finally i got the error :
OperationalError: (1050, Table 'member' already
I'm working on the admin translation to hebrew, and I've found this
line:
admin disabled because not supported on google APPS engine
should be google APP engine (no s at the end of app). Right?
but as I understand GAE supports only memcache, and no cache.ram or
cache.disk
http://www.web2py.com/book/default/chapter/11#Avoid-the-Filesystem
Memcache
on GAE cache.ram and cache.disk should not be used, so we make them
point to cache.memcache.
ps.: there are two Memcache anchors in this page
This should now be fixed in trunk.
On Sep 22, 12:20 am, b vivek bvivek1...@gmail.com wrote:
I am sorry Massimo.. but I dont get you... Do you mean it is still to be
worked upon
On Wed, Sep 22, 2010 at 10:43 AM, mdipierro mdipie...@cs.depaul.edu wrote:
This on the TODO like. Do not log
http://web2py.com/examples/static/1.83.2/web2py_src.zip
I do not believe this is an upgrade issue anyhow.
On Sep 22, 12:22 am, vince lapcc...@gmail.com wrote:
upgraded to 1.85.3, was using 1.83 or something like that (can't
remember)
only one of our server experience the problem with
in JS/jQuery if the request.vars.no_1 matckes form.record.no_1 change
the jQuery('#no_1').attr('background-color','red')
On Sep 22, 1:24 am, elfuego1 elfue...@gmail.com wrote:
Is there a way to display matching values or fields with matching
values in different color?
For example: red
I was
On Sep 22, 2:12 am, Álvaro J. Iradier airad...@gmail.com wrote:
Ok, so after cheking newcron.py I can see the main issue here is that
cron tasks are run in a totally independent process, via subprocess
module, so it's impossible to use threading shared data.
true. that is not a good idea
I am a bit lost. What are you trying to achieve?
On Sep 22, 2:56 am, Niphlod niph...@gmail.com wrote:
I'm sorry to keep up the thread...do you think that replacing all the
redirects in the auth module, or overloading all decorators to raise
HTTP(404) instead of redirecting can be
I think you just need to re-assign the value of request.now to the
date you want at the top of your model and then use request.now
consistently.
On Sep 22, 3:30 am, Pepe pepea...@gmail.com wrote:
Hello!
my question: how i can to make that a timestamp Field save their value
in UTC -0400 ??
Because it was undocumented I was allowed to change it. I changed it
because I think the previous behavour was a bug. Allowing IS_NOT_IN_DB
to validate as '' is like saying that '' is allowed in the referenced
database field and (while technically possible) it is not a good idea
to allow that.
I think your peoblem is that you are not locking the shelve file you
create. If you do not lock it it may get corrupted.
On Sep 22, 6:19 am, Jason (spot) Brower encomp...@gmail.com wrote:
I have some code and information about the sessions being lost...
This method is called every two seconds.
yes. Can you send me a patch to fix it?
On Sep 22, 7:53 am, guruyaya guruy...@gmail.com wrote:
I'm working on the admin translation to hebrew, and I've found this
line:
admin disabled because not supported on google APPS engine
should be google APP engine (no s at the end of app). Right?
Are you using SQLite?
If this is the only field you added and it existed try
replace
db.define_table(,migrate=False)
with
db.define_table(,migrate=True,fake_migrate=True)
Use Field, not SQLField
On Sep 22, 7:37 am, Neveen Adel nevo.a...@gmail.com wrote:
Hello all,
I have a
i actually have no idea but it's the only changes we made since the
problem occur. anyway we can't reproduce it on another server.
i'll give it a try anyway. thanks
On Sep 22, 11:30 pm, mdipierro mdipie...@cs.depaul.edu wrote:
http://web2py.com/examples/static/1.83.2/web2py_src.zip
I do not
turns out this is very difficult to fix with current DAL (sql.py). I
will not happen overnight.
Massimo
On Sep 21, 4:28 pm, mwolfe02 michael.joseph.wo...@gmail.com wrote:
Here's the patch I came up with. Massimo, if you've already got a fix
in, just ignore...
diff --git a/gluon/sql.py
actually I just fixed it in trunk for a few APIs which will cover the
case you described.
There are still a few cases where a custom ID name breaks something.
Massimo
On Sep 22, 9:05 am, mdipierro mdipie...@cs.depaul.edu wrote:
turns out this is very difficult to fix with current DAL (sql.py).
A problem in running web2y on shared hosts is that most of them run
CentOS and CentOS ships with Python 2.4. Python 2.4 misses some
modules that are required by web2py and you need root access to
install them.
Another solution is using virtualenv. I seems it is possible to
download and run
Awww shoot. How do I do that? I found this... but it says that it
doesn't work for windows.
I need Linux and windows support. (Mac could be an option.)
http://code.activestate.com/recipes/576591-simple-shelve-with-linux-file-locking/
BR,
Jason Brower
On Wed, Sep 22, 2010 at 4:47 PM, mdipierro
I am sure there is a better way but this should do it:
from gluon import portalocker
def system_state():
import shelve
overall_state = good
lock_file=open('/dev/shm/from_machine_server.status.lock','r') ###
portalocker.lock(lock_file,portalocker.LOCK_EX) ###
write_file =
But Massimo, cant one just compile and install python 2.5 or 2.6 on it
rather than relying on virtual env. I had once tried installing pylons on
Dreamhost and had to do the same. It was a shared host as well.
http://vivek40.blogspot.com/2010/07/pylons-on-dreamhost.html
Oh nice! I didn't know you could use SQLFORM if you weren't using a
database, very nice. Sure looks allot nicer by default.
So based on your example I'm doing this...
def roomcreate():
form = SQLFORM.factory(
Field('room_name', requires=IS_NOT_EMPTY()),
yes.
On Sep 22, 10:08 am, bally boy ballybo...@gmail.com wrote:
But Massimo, cant one just compile and install python 2.5 or 2.6 on it
rather than relying on virtual env. I had once tried installing pylons on
Dreamhost and had to do the same. It was a shared host as
that messes up order. Try this:
{{=form.custom.begin}}
ul
{{ for fieldname in form.table.fields: }}{{if fieldname=='id':}}
lilabel{{=form.custom.label[fieldname]}}/label
{{=form.custom.widget[fieldname]}}/li
{{pass}}{{pass}}
li{{=form.custom.submit}}/li
/ul
{{=form.custom.end}}
Not if it is jailed shell. DreamHost has full shell.
On Sep 22, 2010 10:20 AM, mdipierro mdipie...@cs.depaul.edu wrote:
yes.
On Sep 22, 10:08 am, bally boy ballybo...@gmail.com wrote:
But Massimo, cant one just compile a...
On Wed, Sep 22, 2010 at 8:13 PM, mdipierro mdipie...@cs.depaul.edu
After I ran it once without Apache, it now works with Apache too.
Any possible reason for that?
Julius
V Sobota, 18. september 2010 o 23:55 +0200, Julius Minka napísal(a):
It works locally, the error occurs only on the server.
V Sobota, 18. september 2010 o 14:46 -0700, mdipierro napísal(a):
Thanks for the note.
I can't upload an application using Admin interface.
I access web2py admin through Https since I can't access it via Http.
Yes I'm using Apache as webserver.
I did:
cd /home/www-data
chown -R www-data:www-data web2py
And now I'm able to access my application that I upload
I changed to is not 'id' and that worked. AH didn't pay attention
to the order but you were right, order is right now and it looks
good. This is what I ended up using:
{{=form.custom.begin}}
ul
{{ for fieldname in form.table.fields: }}
{{if fieldname is not 'id':}}
On 8 sep 2009, 07:36, mdipierro mdipie...@cs.depaul.edu wrote:
Not elegant but you can do this...
def index():
import subprocess
subprocess.Popen('python web2py.py -S yourapp -M -S
yourscript.py')
do something else
why is it not elegant?
I only can find of doing this
Spawning processes takes extra memory. If the user reloads the page
too many time to soon get an out of memory. I think it i better to
have a single background process that handles tasks via a queue. It is
described in the book chapter 4.
On Sep 22, 11:12 am, José Luis Redrejo jredr...@gmail.com
Here an improved version of the controller that takes care if user has
membership to differents groups. The try is to check if the user has a set
of group allowed... It could be better in the future to make a function
has_group_allowed.
You need to add this model :
welcome app normalize hack ie and html5 ready
I made some changes to welcome app, based on this http://html5boilerplate.com/
and other stuff.
* Added support ie 6.0 png transparency (hack)
* Normalize all tags
* Support for html 5 (future), using http://www.modernizr.com/, that
detect if your
On Sep 22, 10:59 am, Yannick ytchatch...@gmail.com wrote:
Thanks for the note.
I can't upload an application using Admin interface.
I access web2py admin through Https since I can't access it via Http.
Yes I'm using Apache as webserver.
I did:
cd /home/www-data
chown -R www-data:www-data
Do this again. Somehow www-data has not acess to the applications
folder
On Sep 22, 10:59 am, Yannick ytchatch...@gmail.com wrote:
Thanks for the note.
I can't upload an application using Admin interface.
I access web2py admin through Https since I can't access it via Http.
Yes I'm using
will look asap. Thank you.
On Sep 22, 11:49 am, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Here an improved version of the controller that takes care if user has
membership to differents groups. The try is to check if the user has a set
of group allowed... It could be better in the
I love this and I would like to include it in the web2py but I have
three problems:
1) it no longer uses ez.css for layout (id had the options for left
and right sidebars for example)
2) there is extra space between header-manu, menu-content, content-
footer. If a user were to replace the header
Forgot to writable=False :
db.auth_membership.user_id.represent=\
lambda value: %(first_name)s %(last_name)s (%(id)s)
%db.auth_user[value]
db.auth_membership.group_id.represent=\
lambda value: %(role)s (%(id)s) %db.auth_group[value]
db.define_table('auth_group_allowed',
I'm really sorry
I'm looking for an answer to this question:
2) I saw what auth.settings.allow_basic_login = True does (and
auth.basic()) and it allows the basic authentication in addition to
the default auth (also with disabled actions). Maybe the default auth
can be shut down totally?
That
You want to disable the login page.
You can try
auth.settings.actions_disabled.append('login')
auth.settings.actions.login_url=URL('your_own_error_page')
On Sep 22, 2:27 pm, Niphlod niph...@gmail.com wrote:
I'm really sorry
I'm looking for an answer to this question:
2) I saw what
In IE7 and IE8 (but not Chrome or Firefox), when I hover over a menu,
right after it drops down it suddenly becomes a little wider (maybe by
15%-20%), which looks odd. Note, this is not new behavior (same thing
in the original scaffolding app) -- I just probably noticed it more as
I played with
I think the resources menu should go in admin, not welcome and the
documentation link should go in resources in admin. I would not list
the chapters because they may change one day.
Since you are doing this and Bruno is building a new examples apps
(layout for main site) perhaps the two of you
Sorry, where are my manners? I should have started with -- excellent
work -- thanks for putting in the time and sharing with the community.
Anthony
On Sep 22, 3:41 pm, Anthony av201...@yahoo.com wrote:
In IE7 and IE8 (but not Chrome or Firefox), when I hover over a menu,
right after it drops
On Sep 22, 2010, at 12:01 PM, mdipierro wrote:
I love this and I would like to include it in the web2py but I have
three problems:
1) it no longer uses ez.css for layout (id had the options for left
and right sidebars for example)
2) there is extra space between header-manu, menu-content,
On Sep 22, 7:33 pm, Martin.Mulone mulone.mar...@gmail.com wrote:
Tellme what you think
Looks good on Opera 10.61.
Great work! Valid code is important, if we want to show that we're
ahead of the curve. I'd like to see tableless forms as well.
On Sep 22, 2:51 pm, cjrh caleb.hatti...@gmail.com wrote:
On Sep 22, 7:33 pm, Martin.Mulone mulone.mar...@gmail.com wrote:
Tellme what you think
Looks good on Opera
i know this need testing, i made this in hours so i think there are
many errors, and i am going to fix. I am going to test in all
browsers, ie, chrome. I think this is never going to validate because
of the hacks, but the hacks allow that its show likely the same in all
browser.
I think the
Sure. Sent
On Sep 22, 3:49 pm, mdipierro mdipie...@cs.depaul.edu wrote:
yes. Can you send me a patch to fix it?
On Sep 22, 7:53 am, guruyaya guruy...@gmail.com wrote:
I'm working on the admin translation to hebrew, and I've found this
line:
admin disabled because not supported on
On Sep 22, 2010, at 1:47 PM, Martin.Mulone wrote:
i know this need testing, i made this in hours so i think there are
many errors, and i am going to fix. I am going to test in all
browsers, ie, chrome. I think this is never going to validate because
of the hacks, but the hacks allow that its
Actually, for sql server it looks like your update just deleted a
couple of lines that were already commented out. I've updated my
patch to work with trunk. This patch seems to solve the problem on ms
sql server:
diff --git a/gluon/sql.py b/gluon/sql.py
--- a/gluon/sql.py
+++ b/gluon/sql.py
@@
Hi folks,
I have an issue with concurrency the dynamic updating of the
language files.
All works fine for a single user, however if multiple users are
accessing the site in a translated language then multiple attempts are
made to update the language file.
User can get an error traceback:
File
Hi Richard,
I started at the command line, then built a bash script for quick
cloning. I also use Web2py's built in versioning on the Mac, used
Eclipse and a script that allows you to update a subdirectory full of
projects. Now I mostly use the command line and batch pull and
updates. One guy I
Hi Yannick,
This is a permissions issue, shut down web2py then restart it. This
has happened with some other folks at VPS and that usually takes care
of it.
Cheers,
Chris
On Sep 21, 11:49 pm, Yannick ytchatch...@gmail.com wrote:
Hello mate,
I'm new with VPS Hosting... I just installed
Hi all,
I'd like to create a system where I can email an individual user a
link that, when they click on it, automatically logs them in and takes
them to the requested page. I didn't see a method of logging in a user
in this manner; can anyone offer any suggestions?
Thanks,
Chris
Begin forwarded message:
From: Paul May p...@paulmayassociates.com
Date: September 22, 2010 8:52:04 PM CDT
To: chic...@python.org
Subject: [Chicago] From PMA - Position: Python Software Development
Reply-To: Paul May p...@paulmayassociates.com, The Chicago Python Users
Group
http://web2py.com/survey
http://web2py.com/cas
On Sep 22, 2:45 pm, Chris partyonais...@gmail.com wrote:
Hi all,
I'd like to create a system where I can email an individual user a
link that, when they click on it, automatically logs them in and takes
them to the requested page. I didn't
Please try trunk again.
On Sep 22, 4:34 pm, mwolfe02 michael.joseph.wo...@gmail.com wrote:
Actually, for sql server it looks like your update just deleted a
couple of lines that were already commented out. I've updated my
patch to work with trunk. This patch seems to solve the problem on ms
Thanks Chris, I look at it tomorrow.
I read in the list that there were a web2py kind of plugin for eclipse, but
to me it not seems to be easy to configure, so I am waiting.
There is also a guy that showed a IDE that he developped that could fit the
web2py needs in matter of dev environnement. I
Thanks, Massimo. It partially worked.
wget http://web2py.googlecode.com/hg/scripts/setup-virtualenv-web2py.sh
chmod +x setup-virtualenv-web2py.sh
./setup-virtualenv-web2py.sh
...
HTTP request sent, awaiting response... 200 OK
Length: 1424650 (1.4M) [application/x-gzip]
Saving to:
Thanks a lot Massimo!.. as always :-)
On Wed, Sep 22, 2010 at 6:58 PM, mdipierro mdipie...@cs.depaul.edu wrote:
This should now be fixed in trunk.
On Sep 22, 12:20 am, b vivek bvivek1...@gmail.com wrote:
I am sorry Massimo.. but I dont get you... Do you mean it is still to be
worked
Thanks for the note.
This may be a stupid question:) but in my set up (Mod_WSGI+ Apache
+Web2py) how do you restart web2py from command line ?
I tried to reboot apache (sudo /etc/init.d/apache2 restart), but I
don't think it also reboot web2py, because from the Admin page after
the apache
grrr. Installing pysqlite requires gcc, installing gcc requires root.
On Sep 22, 9:42 pm, mdmcginn michael.d.mcgin...@gmail.com wrote:
Thanks, Massimo. It partially worked.
wgethttp://web2py.googlecode.com/hg/scripts/setup-virtualenv-web2py.sh
chmod +x setup-virtualenv-web2py.sh
yes this should do it
sudo /etc/init.d/apache2 restart
I do know why you cannot write on that folder.
On Sep 22, 10:14 pm, Yannick ytchatch...@gmail.com wrote:
Thanks for the note.
This may be a stupid question:) but in my set up (Mod_WSGI+ Apache
+Web2py) how do you restart web2py from
Interesting, thanks Massimo!
I took a look at the survey link. It send a link that lets me access
part of the site, but 1) I'm not sure if it's actually logging in the
user (i.e. changing auth.user) and 2) I don't have access to the code
for it, so I don't know how to imitate its technique.
I
works ok from browser but does this work for you?
wget http://groups.google.com/group/web2py/feed/rss_v2_0_msgs.xml
Here is a sample of the processes using up more memory than it should:
zenex - 3MB - 1 day, 1:34:41 - 17000 -
/home/zenex/webapps/web2py/apache2/bin/httpd -f
/home/zenex/webapps/web2py/apache2/conf/httpd.conf -k start
zenex - 64MB - 1 day, 1:34:41 - 17002 -
the survey app predates auth. It would be really nice to have a gluon/
contrib/login_method based on it.
On Sep 22, 11:05 pm, Chris partyonais...@gmail.com wrote:
Interesting, thanks Massimo!
I took a look at the survey link. It send a link that lets me access
part of the site, but 1) I'm
On 22 September 2010 07:11, mdipierro mdipie...@cs.depaul.edu wrote:
Are you running web2py.py or wsgihandler? If you are starting
web2py.py you may want to comment
import gluon.import_all
it is there to detect missing/buggy modules but it causes it to use
more memory than necessary.
Some
I did some more digging and found that the current code in gluon.tools
stores login info in session.auth:
session.auth = Storage(
user = user,
last_visit = request.now,
expiration = self.settings.long_expiration,
80 matches
Mail list logo