[web2py] Re: debugging help. type 'exceptions.KeyError' when trying to edit a record.

2011-04-29 Thread niknok
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.

[web2py] readable/writable settings of auth.signature

2011-04-29 Thread niknok
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?

[web2py] Re: problems creating an issue tracker

2011-04-29 Thread selecta
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

[web2py] Re: Add gluon to global python path

2011-04-29 Thread luckysmack
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

Re: [web2py] Re: Add gluon to global python path

2011-04-29 Thread José Luis Redrejo Rodríguez
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

[web2py] Project: pydev extension for web2py in Eclipse

2011-04-29 Thread Álvaro J . Iradier
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:

[web2py] how to set the value of textarea form field on accept, upload without storing files

2011-04-29 Thread selecta
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

[web2py] web2py posterity and mail man

2011-04-29 Thread yarden...@gmail.com
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

[web2py] Re: how to set the value of textarea form field on accept, upload without storing files

2011-04-29 Thread selecta
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

Re: [web2py] Re: CNAME and routes.py file

2011-04-29 Thread Martín Mulone
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

Re: [web2py] web2py posterity and mail man

2011-04-29 Thread David J.
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

[web2py] plugin_wiki unsolved merge

2011-04-29 Thread rif
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?

[web2py] Re: postgress outer join

2011-04-29 Thread Pawel Jasinski
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

[web2py] Re: problems creating an issue tracker

2011-04-29 Thread Anthony
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

[web2py] Re: selecting a value in dropdownlist reference to another value in dropdownlist

2011-04-29 Thread Mohamed Sami
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():    

[web2py] Re: How to define/store chunks that users can choose to display?

2011-04-29 Thread Stodge
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

[web2py] Web2Hash in Dotcloud

2011-04-29 Thread Gilson Filho
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/

[web2py] Re: help.. is this correct-auth_user

2011-04-29 Thread Massimo Di Pierro
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 =

[web2py] Re: db(...).delete()

2011-04-29 Thread Massimo Di Pierro
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!

[web2py] Re: readable/writable settings of auth.signature

2011-04-29 Thread Massimo Di Pierro
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

[web2py] Re: plugin_wiki unsolved merge

2011-04-29 Thread Massimo Di Pierro
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  

[web2py] Re: postgress outer join

2011-04-29 Thread Massimo Di Pierro
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),

[web2py] Re: Web2Hash in Dotcloud

2011-04-29 Thread Massimo Di Pierro
:-) 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.

Re: [web2py] Re: CNAME and routes.py file

2011-04-29 Thread Jonathan Lundell
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,

[web2py] Re: How to avoid computing a field when updating a record?

2011-04-29 Thread howesc
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

[web2py] Re: Add gluon to global python path

2011-04-29 Thread luckysmack
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

Re: [web2py] Add gluon to global python path

2011-04-29 Thread Praneeth Bodduluri
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,

Re: [web2py] Re: Add gluon to global python path

2011-04-29 Thread Jonathan Lundell
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

[web2py] Re: Powerpack

2011-04-29 Thread Christopher Steel
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

[web2py] How to best create unique strings in python...

2011-04-29 Thread Jason Brower
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

[web2py] query by giving the table name and the field name

2011-04-29 Thread Jose
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

[web2py] Re: How to best create unique strings in python...

2011-04-29 Thread Julio Schwarzbeck
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 +

[web2py] Re: query by giving the table name and the field name [Solved]

2011-04-29 Thread Jose
Done well it works def test(): mytable = db['mytable'] a_field = mytable['fb'] rows = db(a_field == 'something').select() return dict(rows=rows) Jose

[web2py] Re: query by giving the table name and the field name

2011-04-29 Thread mgra...@seccuris.com
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'),    

[web2py] Re: How to best create unique strings in python...

2011-04-29 Thread Massimo Di Pierro
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)

[web2py] FYI - Easter Sale from JetBrains

2011-04-29 Thread mikech
PyCharm on sale for 50% off. http://blogs.jetbrains.com/pycharm/2011/04/easter-sale-from-jetbrains/

Re: [web2py] Re: CNAME and routes.py file

2011-04-29 Thread Martín Mulone
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.

[web2py] Re: db(...).delete()

2011-04-29 Thread mart
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

[web2py] web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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:

Re: [web2py] Re: How to best create unique strings in python...

2011-04-29 Thread Jason Brower
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

[web2py] Webgrid options

2011-04-29 Thread luifran
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?

[web2py] bug in dal.py with multicolumn primary keys

2011-04-29 Thread Loren McGinnis
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

[web2py] Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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

[web2py] Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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

Re: [web2py] Re: Add gluon to global python path

2011-04-29 Thread José Luis Redrejo Rodríguez
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

[web2py] Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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,

[web2py] Using HTML5 local storage for Web2Py Doc - Creating a Wiki on Git to list all plugins ?

2011-04-29 Thread Alexandre Strzelewicz
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 :)

[web2py] Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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

[web2py] Re: Deploying DB

2011-04-29 Thread pbreit
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,

Re: [web2py] Re: SQLFORM question

2011-04-29 Thread Kenneth Lundström
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

Re: [web2py] Re: postgress outer join

2011-04-29 Thread Pawel Jasinski
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)))

[web2py] Arguments in Routes

2011-04-29 Thread Gilson Filho
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',

[web2py] Re: How to best create unique strings in python...

2011-04-29 Thread Julio Schwarzbeck
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

[web2py] Re: Version control database schema?

2011-04-29 Thread pbreit
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?

[web2py] Re: Web2py vs. others

2011-04-29 Thread Anthony
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

[web2py] Re: Web2py vs. others

2011-04-29 Thread Massimo Di Pierro
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.

[web2py] Awesome discussion about web2py

2011-04-29 Thread Saurabh Sawant
https://convore.com/pycon-2011/a-bias-survey-of-python-frameworks/

[web2py] Re: Deploying DB

2011-04-29 Thread Anthony
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

[web2py] Unknown auth_user injected in 1.95.1

2011-04-29 Thread nic
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 =

Re: [web2py] Awesome discussion about web2py

2011-04-29 Thread Bruno Rocha
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),

Re: [web2py] Awesome discussion about web2py

2011-04-29 Thread Gilson Filho
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

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread nic
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.

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread ron_m
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.

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread nic
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.

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread ron_m
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

[web2py] (Bug?) Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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,                

[web2py] passing from view to controller.. is this right?

2011-04-29 Thread Resa
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,})}}

[web2py] passing from view to controller.. is this right?

2011-04-29 Thread Resa
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,

[web2py] Re: (Bug?) Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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 =

[web2py] Re: passing from view to controller.. is this right?

2011-04-29 Thread Massimo Di Pierro
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

[web2py] Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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/

[web2py] Multi-Company System

2011-04-29 Thread villas
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

[web2py] Web2Py Powerd By Error

2011-04-29 Thread Gilson Filho
http://web2py.com/poweredby _ *Gilson Filho* *Web Developer http://gilsondev.com*

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread Stodge
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

[web2py] Re: Web2Py Powerd By Error

2011-04-29 Thread Gilson Filho
Sorry, I wrote wrong. The site is giving error. _ *Gilson Filho* *Web Developer http://gilsondev.com*

[web2py] Re: Web2Py Powerd By Error

2011-04-29 Thread Stodge
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*

[web2py] Re: Web2Py Powerd By Error

2011-04-29 Thread Anthony
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] Re: Web2Py Powerd By Error

2011-04-29 Thread Stodge
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

[web2py] Re: Web2Py Powerd By Error

2011-04-29 Thread Anthony
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

[web2py] Re: Add gluon to global python path

2011-04-29 Thread luckysmack
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

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread nic
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

Re: [web2py] Re: Add gluon to global python path

2011-04-29 Thread Jonathan Lundell
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é

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread Anthony
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

[web2py] Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Stodge
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

Re: [web2py] Multi-Company System

2011-04-29 Thread Bruno Rocha
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:

[web2py] Re: Unknown auth_user injected in 1.95.1

2011-04-29 Thread nic
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.

[web2py] Re: Multi-Company System

2011-04-29 Thread Massimo Di Pierro
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

[web2py] web2py How can I use images in radiobuttons generated from a SQLFORM

2011-04-29 Thread naveed
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,

[web2py] Re: web2py as CAS consumer; The page isn't redirecting properly

2011-04-29 Thread Massimo Di Pierro
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

[web2py] Re: web2py How can I use images in radiobuttons generated from a SQLFORM

2011-04-29 Thread Anthony
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

[web2py] Re: Fwd: Solved -- Problems with special characters and pyfpdf

2011-04-29 Thread Christopher Steel
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

[web2py] Re: images not loading completely

2011-04-29 Thread Philip
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

[web2py] plugin_wiki attachment KeyError: 'file'

2011-04-29 Thread nic
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,