Argh! It was a logic error. I was accessing a different database.
Thanks anyway.
On Apr 29, 11:43 am, niknok nikolai...@gmail.com wrote:
The following model and controller works fine when adding records, but
generates an error type 'exceptions.KeyError'('issuer') when I try
to edit a record.
I'm trying to set it like this: db.mytable.is_active.readable=False
but it doesn't appear to be working as they still show up in the CRUD
forms I make.
Is there a way to individually set the readable, writable settings for
each field that auth.signature creates?
true, there is no loop, but there is also no real fallback
i get something like
you are redirected here - very long link (error-error-error-)
this could be a bit nicer
On Apr 28, 8:26 pm, Anthony abasta...@gmail.com wrote:
Also, note that I don't think a failure of routes_onerror will result
python-gluon and python-web2py dont seem to be in the ubuntu repos. I
found a .deb file here http://pkgs.org/package/python-gluon but i want
to get some feedback first if anyone knows a better way. a few quick
searches didnt show anything about adding a repo to ubuntu to make it
available.
On
2011/4/29 luckysmack luckysm...@gmail.com:
python-gluon and python-web2py dont seem to be in the ubuntu repos. I
found a .deb file here http://pkgs.org/package/python-gluon but i want
to get some feedback first if anyone knows a better way. a few quick
searches didnt show anything about adding
Hi,
I am trying to develop an extension (a Jython script[1]) for Pydev[2] to
improve web2py integration into Eclipse (I'm not sattisfied with the
existing recipes).
I've just started, and you can follow what's going on on the following
thread in the Pydev-code mailing list:
I have the following form
species_form = form_factory(
Field('species', 'text', label=TAG['']
(Yeast,BR(),Systematic Names)),
Field('species_file', 'upload', label=Upload Names,
uploadfolder=os.path.join(request.folder, 'tmp')),
)
I want he text field to be filled with
Hi
I need someone to help us setup on an Amazon web Services micro
instance
1. web2py
2. mysql
3, postifx
4. posterity
5. mailman
Will need to embed posterity and mailman into web2py
Will need to permit user to backup 1, some or all email in posterity
to HDD or S3.
Let us know if you can or
Also I wonder if there is a method to upload the file without ever
storing it? If I remove the uploadfolder argument it does not work. I
really dont want to store the file at all.
ok i should have serached a bit more
uploadfield=False
does the trick
a bit more information on the other problem
http://bit.ly/kYC5Pw
2011/4/27 Jonathan Lundell jlund...@pobox.com
On Apr 27, 2011, at 2:40 PM, pbreit wrote:
But I think he wants his app to be the default and still have it show in
the URL?
With the parametric (new) router, you can do that by specifying:
applications=None in the base
Please check out experts4solutions.com for commercial projects.
On 4/29/11 7:27 AM, yarden...@gmail.com wrote:
Hi
I need someone to help us setup on an Amazon web Services micro
instance
1. web2py
2. mysql
3, postifx
4. posterity
5. mailman
Will need to embed posterity and mailman into
It seems that the downloadable version of plugin_wiki is packaged with an
unsolved merge in the models folder.
There are three files plugin_wiki.py plugin_wiki.py.bak
plugin_wiki.py.orig
Also the star rating plugin is not functioning well because of this.
BTW where is the plugin_wiki repo?
hi,
short update
I could use executesql, but is there an easy way to reconnect the
result of executesql into the rows returned by db(...).select(...)?
As a work around I do the following:
0. modify DAL so select( ) accepts extra parameter to overwrite
generated sql
1. develop and test with
Not sure it will help much, but you can customize the default static
response.
On Friday, April 29, 2011 3:19:12 AM UTC-4, selecta wrote:
true, there is no loop, but there is also no real fallback
i get something like
you are redirected here - very long link (error-error-error-)
this
Thank you Massimo, i solved the issue with work around but i will try
the code above.
On Apr 25, 7:26 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
I would do something like this:
db.define_table('nominee',Field('name'),Field('region_id',db.Regions))
def get_nominees():
Thanks. I want to define a number of blocks in the DB, say:
- the last 10 posts
- the last 10 posts for a specific category
- a list of categories
- a list of the most popular tags
I want to let users choose which of these blocks they want to display.
This is the part I'm struggling with.
On
Hello guys,
The web2hash is temporarily hosted on dotcloud to test some features of this
platform(and I'm loving it!). Lucas Avila is contributing to the project
and inserted the possibilityto retweet and reply messages. Below is the link
:
http://www.web2hash.dotcloud.com/
or more simply:
updated = db(db.Matworksheeetdb.email==auth.user.email)
(db.Matworksheeetdb.mgpsession. mpg).update(...)
On Apr 29, 12:36 am, pbreit pbreitenb...@gmail.com wrote:
Now that I'm looking at the code again, can you even do that?
Wouldn't you need to do something like:
user =
Or in one line ;-)
def deleteRecords(): [db[tbl].truncate() for tbl in db.tables if not
tbl.startswith('auth_') and not tbl in
('local__user','local_history')]
On Apr 29, 12:43 am, mart msenecal...@gmail.com wrote:
yup, that did it! AND... only those tables not in _tables! this is
great!
It should work. Can you post your model so I can try it?
On Apr 29, 2:09 am, niknok nikolai...@gmail.com wrote:
I'm trying to set it like this: db.mytable.is_active.readable=False
but it doesn't appear to be working as they still show up in the CRUD
forms I make.
Is there a way to
http://code.google.com/p/cube2py/
plugin_wiki is in there. I was planning some cleanup today.
On Apr 29, 6:51 am, rif feric...@gmail.com wrote:
It seems that the downloadable version of plugin_wiki is packaged with an
unsolved merge in the models folder.
There are three files plugin_wiki.py
Can you please try:
db(db.first.id.belongs(db()._select(db.second.r12_first_id)))
.select(db.first.ALL,db.second.ALL,db.third.ALL,db.fourth.ALL,
left= [
db.second.on(db.first.id==db.second.r12_first_id),
db.third.on(db.third.r13_first_id==db.first.id),
:-)
On Apr 29, 8:12 am, Gilson Filho cont...@gilsondev.com wrote:
Hello guys,
The web2hash is temporarily hosted on dotcloud to test some features of this
platform(and I'm loving it!). Lucas Avila is contributing to the project
and inserted the possibilityto retweet and reply messages.
On Apr 29, 2011, at 4:42 AM, Martín Mulone wrote:
http://bit.ly/kYC5Pw
Did you test that? I think it should be the other way around--that is, that
applications=None disabled application-name removal from the URL.
2011/4/27 Jonathan Lundell jlund...@pobox.com
On Apr 27, 2011, at 2:40 PM,
i haven't been using CRUD directly, and i added this to my form display
logic to show computed fields as read-only, and update them on submit:
#make compute fields read-only in the forms
for f in db[request.args[0]]:
if f.compute:
f.writable=False
#include all
Yea im using 11.04 which just released. So its probably just that it
hasnt been updated yet. ill check out that one package until it shows
up in the repo and try to update to that. I know theyre all in line
with each other but ive seen a few times where a package showed up in
debian but not
You can do a pip install web2py that should put gluon in the global
path. Try it in a virtualenv.
--
Praneeth
IRC: lifeeth
On Fri, Apr 29, 2011 at 11:06 AM, luckysmack luckysm...@gmail.com wrote:
Pretty much like the title says. This is also for things like when i
open up a i/b/python shell,
On Apr 29, 2011, at 7:19 AM, luckysmack wrote:
Yea im using 11.04 which just released. So its probably just that it
hasnt been updated yet. ill check out that one package until it shows
up in the repo and try to update to that. I know theyre all in line
with each other but ive seen a few
Martin,
I have been looking at powerpack and it is a really exciting
application and collection of plugins.
You have addressed a number of practical issues related to Web2py
application development in an elegant and what appears to be a highly
practical ways. Bravo!
Your approach of starting
I want to make a unique set of chars that people can't just figure out
what they are for. The reason for this is to create unique barcodes for
ticket validation when entiring a conference using my software. This
unique letter numb combo would be in a 2d barcode and it entered using a
restful
Hi,
Given the following model:
db.define_table('mytable',
Field('fa'),
Field('fb'),
Field('fc'),
)
I can do:
def test():
# get mytable object (type Table) given the name of the table
(str)
mytable = db['mytable']
# get a_field object (type Field) given the name of the
Try this:
import random
import string
print ''.join(random.choice(string.ascii_letters + string.digits) for
letter in xrange(8))
Output:
print ''.join(random.choice(string.ascii_letters + string.digits) for
letter in xrange(8))
MRWFo6Fv
print ''.join(random.choice(string.ascii_letters +
Done well it works
def test():
mytable = db['mytable']
a_field = mytable['fb']
rows = db(a_field == 'something').select()
return dict(rows=rows)
Jose
you are looking for something along these lines:
def test():
rows = db(db['mytable']['fb'] == 'something')
return dict(rows=rows)
On Apr 29, 10:55 am, Jose jjac...@gmail.com wrote:
Hi,
Given the following model:
db.define_table('mytable',
Field('fa'),
Field('fb'),
One trick... try avoid having 'l 1' and '0 o O' because depending on
the font you use they can be confused. It may also be a good idea to
only use upper case and numbers.
chars = 'ABCDEFGHIJKLMNPQRSTUVWXYZ12345678 or
chars = 'abcdefghijkmnpqrstuvwxyz23456789
and
''.join(random.choice(chars)
PyCharm on sale for 50% off.
http://blogs.jetbrains.com/pycharm/2011/04/easter-sale-from-jetbrains/
Yes, wrong. Now updating.
2011/4/29 Jonathan Lundell jlund...@pobox.com
On Apr 29, 2011, at 4:42 AM, Martín Mulone wrote:
http://bit.ly/kYC5Pw
Did you test that? I think it should be the other way around--that is, that
applications=None disabled application-name removal from the URL.
just when I was getting over
I would have used ``{{=rows}}``:template
Mart ;)
On Apr 29, 9:43 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Or in one line ;-)
def deleteRecords(): [db[tbl].truncate() for tbl in db.tables if not
tbl.startswith('auth_') and not tbl in
I'm trying to get web2py to authenticate against a Django CAS
provider. The CAS provider is at http://10.1.1.1:1/cas. The CAS
provider works for Django based CAS consumers.
I commented out the existing auth code in my db.py and added this as
per the instructions on http://web2py.com/cas:
Great ideas!
Could putting the users ID athe beginning or end be a good idea? Is it
in some way hackable? I wouldn't use it to identifiy the users id with
it, but I would be able to garontee an individual string with out to
much work. :D
BR,
Jason
On 04/29/2011 07:30 PM, Massimo Di Pierro
I'm using WebGrid, but sometimes I just want to use it to
show records, not to edit, delete,view,add ...
With this line: grid.action_links = [ ],I remove
edit, delete, and view but not add records.
Can I remove the option to add records?
I'm using a legacy database that has a table with multiple columns in
the primary key (If I could, I would change it).
When inserting into this table, I get the following error:
File /home/loren/dev/web2py/gluon/dal.py, line 774, in insert
return dict( [ (k,fields[k]) for k in
I added some debug to web2py:
in _CAS_login:
print
print self.cas_login_url
print self.cas_my_url
print self.ticket
I get:
http://10.1.1.1:1/cas/login
http://10.1.1.1:9000/myapp/default/user/login
None
redirecting
http://10.1.1.1:1/cas/login
Ah, the CAS code is assuming that the provider supports at least three
actions:
self.cas_login_url=%s/%s%(self.urlbase,actions[0])
self.cas_check_url=%s/%s%(self.urlbase,actions[1])
self.cas_logout_url=%s/%s%(self.urlbase,actions[2])
actions=['login','check','logout']
I
2011/4/29 Jonathan Lundell jlund...@pobox.com:
On Apr 29, 2011, at 7:19 AM, luckysmack wrote:
Yea im using 11.04 which just released. So its probably just that it
hasnt been updated yet. ill check out that one package until it shows
up in the repo and try to update to that. I know theyre all
I had to use:
actions=['login','validate','logout']
Now I'm getting:
File /home/mike/Development/python/web2py/gluon/contrib/
login_methods/cas_auth.py, line 80, in get_user
d[key]=self.maps[key](user)
File /home/mike/Development/python/web2py/gluon/contrib/
login_methods/cas_auth.py,
Why don't we do a Wiki as Node.js which list all plugins related to
Web2Py created by the community ?
Like that :
https://github.com/joyent/node/wiki/modules
And why the Web2Py's documentation doesn't use the HTML5 local
storage ? It can be a good argument :)
Now I'm stuck:
def __init__(self, g,
urlbase = https://web2py.com/cas/cas;,
actions=['login','check','logout'],
maps=dict(username=lambda v:v[2],
email=lambda v:v[1],
user_id=lambda
If I do not have any migrate/fake_migrate parameters in any of my
define_tables, do migrate/migrate_enabled and fake_migrate/fake_migrate_all
work the same?
I don't seem to be getting the same behavior. For example:
db = DAL('sqlite://storage.sqlite', migrate_enabled=True,
I tried putting field.writeable=False, now when using the update form
that specific coloum is not changed. Sounds like a bug. I don´t won´t to
have to put all to writeable=false.
Kenneth
On Apr 27, 9:40 pm, Kenneth Lundströmkenneth.t.lundst...@gmail.com
wrote:
I tried that soluttion but I
hi,
somehow I am getting way to many records as a result.
--pawel
On Fri, Apr 29, 2011 at 3:53 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Can you please try:
db(db.first.id.belongs(db()._select(db.second.r12_first_id)))
Hello everyone,
I was wondering if you can do one thing in routes.py. In django, you can
customize theURLs and specify a variablethat will conduct an argument, and
that will capture thevalue that is passed:
(...)
(r'^test/(?Pid_user)/$','app.views.action'),
routes_in = ((r'.*:/favicon.ico',
If that is the case I'd suggest using a hash to encode your username
with a salt that you only know, for example:
import hashlib
salt = my secret passphrase
hash_info = hashlib.sha256('%s%s' % (username, salt)).hexdigest()
Under this scenario, assuming that usernames are unique, for user
john
I'm looking at this further. It seems I only want to .hgignore
storage.sqlite on my local machine so that sql.log and .table files get
version controlled. But then I want the server to ignore sql.log since it
creates its own. Does that sound right?
Perhaps sql.log should also get a hash?
On Friday, April 29, 2011 3:38:21 PM UTC-4, mikech wrote:
Author seems to have decided on Web2py.
That makes sense given that Massimo is the author. :-)
http://www.web2py.com/examples/static/web2py_vs_others.pdf
That is an old document... not longer correct in may ways.
On Apr 29, 3:12 pm, Anthony abasta...@gmail.com wrote:
On Friday, April 29, 2011 3:38:21 PM UTC-4, mikech wrote:
Author seems to have decided on Web2py.
That makes sense given that Massimo is the author.
https://convore.com/pycon-2011/a-bias-survey-of-python-frameworks/
As arguments to DAL, 'migrate' and 'migrate_enabled' do not do the same
thing (the former sets the default for all define_table calls that lack an
explicit 'migrate' argument, and the latter simply enables or disables all
migrations), but they both default to True, so explicitly setting them as
Hello All,
I have recently upgraded to web2py 1.95.1 and now when I create a new
simple application and then look in database administration =
db.auth_user there is always an unknown (to me) user already there
with:
auth_user.id = 1
auth_user.first_name = Bellatrikse
auth_user.last_name =
web2pyslices 2.0 is on the way, very slow development, but it is in process.
The goal now is to have a repository where you can simply call from web2py
and install a package as a plugin or layout, or even just download a piece
of code or module.
I am now working on its conception and design(UI),
I'm here for contribute! :)
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/4/29 Bruno Rocha rochacbr...@gmail.com
web2pyslices 2.0 is on the way, very slow development, but it is in
process. The goal now is to have a repository where
I should add that I have been playing around with powerpac tools,
which has some scripts around modifying users.
But I do not think this is the problem.
If someone could create a simple app and then look in the auth_user
that would be very helpful.
I just did with 1.95.1 and the auth_user table is empty. I am not using
powerpac tools, it is a plain install from the web2py_src.zip file download.
Thanks Ron,
Looks like my web2py is corrupted.
I may have to reload web2py on my server I have been using the upgrade
button on the admin app for some time now.
I would just download the web2py_src.zip and unpack it in a different
directory and then run it from that directory
python web2py.py
do the simple app in admin and check the result.
I believe the simple app builder is just an unpack and rename of the welcome
app - the w2p file in the base of
Hmm, the CAS provider is replying with:
['yes\r', 'mike\r', '']
The CAS consumer code in web2py is:
data = data.split('\n')
So it's not parsing the response correctly. Is this a bug?
On Apr 29, 3:20 pm, Stodge sto...@gmail.com wrote:
Now I'm stuck:
def __init__(self, g,
IN VIew:
{{session.correct}}=correct
{{session.numquest}}=numBer
{{session.time_quest}}=total_time
{{session.mgp}}=mgp
{URL(f='insert_updatedb', vars={'number':numBer,
'totaltime':total_time, 'mgp':mgp,'correct':correct,})}}
Controller:
def insert_updatedb():
session.correct=request.vars.correct
session.numquest=request.vars.number
session.time_quest=request.vars.total_time
session.mgp=request.vars.mgp
.
.
.
in a script in a view:
{{URL(f='insert_updatedb', vars={'number':numBer,
The CAS spec defines the login response as
yesLF
usernameLF
So maybe the provider is wrong.
http://www.jasig.org/cas/protocol
On Apr 29, 7:47 pm, Stodge sto...@gmail.com wrote:
Hmm, the CAS provider is replying with:
['yes\r', 'mike\r', '']
The CAS consumer code in web2py is:
data =
a href={{=URL(f='insert_updatedb', vars={'number':numBer,
'totaltime':total_time, 'mgp':mgp,'correct':correct,})}}click me/a
or, depending on what you want,
{{=LOAD(request.controller,'insert_updatedb', vars={'number':numBer,
'totaltime':total_time, 'mgp':mgp,'correct':correct},ajax=True)}}
On
Im still stuck at this point; I don't see how maps can possibly be
setup properly if I use teh code from web2py.com/cas:
from gluon.contrib.login_methods.cas_auth import
CasAuth
auth.define_tables(username=True)
auth.settings.login_form=CasAuth(
globals(),
urlbase = https://web2py.com/cas/
Hi All,
I would like to use a single web2py app for many companies using a
single DB. For simplicity, I would prefer to use just one set of
tables too.
My planned strategy is:
1. Define a 'company' table to have the basic company info.
2. Add a company_id field to all other tables to keep data
http://web2py.com/poweredby
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
Did someone gain unauthorised access to your server and add a database
fixture to create that user?
On Apr 29, 5:31 pm, nic nicats...@gmail.com wrote:
Thanks Ron,
Looks like my web2py is corrupted.
I may have to reload web2py on my server I have been using the upgrade
button on the admin app
Sorry, I wrote wrong. The site is giving error.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
web2py.com isn't working for me either.
On Apr 29, 8:32 pm, Gilson Filho cont...@gilsondev.com wrote:
Sorry, I wrote wrong. The site is giving error.
_
*Gilson Filho*
*Web Developerhttp://gilsondev.com*
Are you only having a problem with the Poweredby site -- I can't access
web2py.com at all?
Anthony
On Friday, April 29, 2011 8:32:56 PM UTC-4, Gilson Filho wrote:
Sorry, I wrote wrong. The site is giving error.
_
*Gilson Filho*
*Web Developer
web2py.com is really slow for me, but it does load.
On Apr 29, 8:36 pm, Anthony abasta...@gmail.com wrote:
Are you only having a problem with the Poweredby site -- I can't access
web2py.com at all?
Anthony
On Friday, April 29, 2011 8:32:56 PM UTC-4, Gilson Filho wrote:
Sorry, I
Yes, I finally got web2py.com to load. And then I tried the Poweredby site,
and it is indeed returning an internal error.
On Friday, April 29, 2011 8:46:15 PM UTC-4, Stodge wrote:
web2py.com is really slow for me, but it does load.
On Apr 29, 8:36 pm, Anthony abas...@gmail.com wrote:
Are
when i append gluon to the sys.path and try to import it doesnt work
because its unable to find it. I am installing web2py via pip. THanks
for the help too guys. appreciate it.
On Apr 29, 12:01 pm, José Luis Redrejo Rodríguez jredr...@debian.org
wrote:
2011/4/29 Jonathan Lundell
The user was indeed in the welcome app.
I deleted the user from the welcome app
then did a new simple app
and the user was there.
I am now re-installing web2py on my server
Will let you know how it goes.
I believe my server is secure but If this was someone gaining access
to my server then they
On Apr 29, 2011, at 5:56 PM, luckysmack wrote:
when i append gluon to the sys.path and try to import it doesnt work
because its unable to find it. I am installing web2py via pip. THanks
for the help too guys. appreciate it.
What exactly are you trying to import?
On Apr 29, 12:01 pm, José
Note, I think new apps created via admin are created from the 'welcome.w2p'
packed version of the 'welcome' app in your /web2py/ root folder, not by
copying the actual /applications/welcome/ folder. So, if the user got
inserted into the packed 'welcome.w2p' file, then you'd have to replace that
created ticket 251 - http://code.google.com/p/web2py/issues/detail?id=251
On Apr 29, 8:14 pm, Stodge sto...@gmail.com wrote:
Im still stuck at this point; I don't see how maps can possibly be
setup properly if I use teh code from web2py.com/cas:
from gluon.contrib.login_methods.cas_auth
On GAE or Postgre SQL you can have MultiTenance and Namespaces (I am not
sure how DAL deal with that)
I am developing a multitenant app, I am using the company_id approach
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Fri, Apr 29, 2011 at 9:30 PM, villas villa...@gmail.com wrote:
Hi Guys,
Well I reloaded a fresh copy of web2py and all is ok.
I have kept the old files so I will do a bit more digging and try and
find out what happened with the security.
Thanks for your great responses.
Best regards,
Nic.
Villas I am very interested in this. I need the same thing.
One solution I have thought of consists of having many databases.
On database for registering companies and one database per each
company.
Another solution is the one you suggest. Add a 'company_id' field to
each table that defaults to
I would like to generate a SQLFORM with radiobuttons using the
radiobutton widget as below (code trimmed):
db.define_table('tabA',
Field('name', 'string', length=16, required=True, unique=True, ),
Field('shape', 'string', length=8, default='star',
widget=SQLFORM.widgets.radio.widget,
thanks. WIll process it asap.
On Apr 29, 8:42 pm, Stodge sto...@gmail.com wrote:
created ticket 251 -http://code.google.com/p/web2py/issues/detail?id=251
On Apr 29, 8:14 pm, Stodge sto...@gmail.com wrote:
Im still stuck at this point; I don't see how maps can possibly be
setup
See answer here:
http://stackoverflow.com/questions/5838926/web2py-how-can-i-use-images-in-radiobuttons-generated-from-a-sqlform/5839317#5839317
On Friday, April 29, 2011 9:54:26 PM UTC-4, naveed wrote:
I would like to generate a SQLFORM with radiobuttons using the
radiobutton widget as
Thank you Alexandre, now I am feeling exceptionally lazy as well as
being highly satisfied with the end results and am therefore impelled
to add something (anything!) as well.
If you as lazy as I am, opps, I mean, if you want to keep all of your
pdf related imports and code in a single
Tim,
I've been able to reproduce the bug on another machine too (web2py
1.95.1, Mac OS X.6.6). Here's what I did:
1. start web2py with 0.0.0.0 for the server IP.
2. add a large image to the static folder of an application (I added
I am using 1.95.1 and have just created a new simple app and added the
plugin_wiki, which I have done before in 1.94.xx.
When I try to Attach a file from a plugin_wiki page I get the
following error:
Traceback (most recent call last):
File /home/www-data/web2py/gluon/restricted.py, line 181,
93 matches
Mail list logo