[web2py] Re: How to get the current domain in routes.py?

2011-05-10 Thread Dan
Hi Massimo, thanks a lot for your quick reply. I need the domain/hostname in the second part of routes_in. I can't hard code the domain name because of out build system. routes_in have to use the current domain or some kind of wildcard. Is there any way? Thanks again. On May 10, 3:57 am,

[web2py] Re: drop down box content depends of another drop box

2011-05-10 Thread niknok
search cascading select or cascading dropdowns On May 10, 1:24 pm, pepe_eloy pepe.e...@gmail.com wrote: Hello! How can I fill a drop box widget with content depends of another drop box? I'll explain better: I have 3 tables: db.define_table('categoria',                 SQLField('nombre',

[web2py] Re: using CRYPT in SQLFORM.factory doesn't work?

2011-05-10 Thread niknok
Anthony, sorry for the typo. I meant calling onvalidation=, and not onaccept That is the behavior I'm expecting, since I've seen that work like so before. Here's a stripped-down version of the function: def cnv(): c_hash=request.args(0) form=SQLFORM.factory(

[web2py] Odg.: Re: Odg.: Re: Odg.: Re: 1.95.1 - Field delete_this_record does not belong to the table

2011-05-10 Thread andrej burja
i'm sorry. my mistake here is the whole thing: in db.py + db.define_table('racun', Field('stevilka_racuna','integer',label='številka računa'), Field('datum_racuna','date',label='datum računa'),

[web2py] Re: using CRYPT in SQLFORM.factory doesn't work?

2011-05-10 Thread pbreit
OK, I guess it does work. This worked for me: def crypt(): form = SQLFORM.factory( Field('test', requires=CRYPT(auth.settings.hmac_key))) if form.accepts(request.vars, session): return dict(data=form.vars.test) return dict(form=form)

[web2py] Re: Memory error with numpy large array

2011-05-10 Thread Kostas M
Thanks for your answer. My trials are with the webserver coming with web2py (no apache or other server), into a Windows machine. I will try the same in a Linux machine, and I'll report the results in case it is a Windows quirk... On May 5, 11:52 pm, Massimo Di Pierro massimo.dipie...@gmail.com

Re: [web2py] Can't migrate on Postgres

2011-05-10 Thread Johann Spies
On 10 May 2011 05:04, pbreit pbreitenb...@gmail.com wrote: I can't seem to get any of my model changes to migrate to Postgres. I've tried various combinations of turning migrate and fake_migrate on and off. Deleting and re-adding Fields(). I'm not sure what else to try or where to look. I

Re: [web2py] Re: Autocomplete widget on same table

2011-05-10 Thread Johann Spies
Thanks. That helps. Regards Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His divine power has given us everything we need for life and godliness through the full knowledge of the one who called us by his own glory and excellence.

[web2py] web2py with Eclipse

2011-05-10 Thread weheh
I'm having trouble getting Eclipse to ignore undefined variable errors for things imported from gluon, like A, auth, etc. There are numerous threads on the subject, none of which I'm able to get to work, including: http://pierreth.blogspot.com/2010/10/web2py-eclipse-pydev-recipe.html

[web2py] Re: drop down box content depends of another drop box

2011-05-10 Thread DenesL
This should be of help: http://www.web2pyslices.com/main/slices/take_slice/85 On May 10, 1:24 am, pepe_eloy pepe.e...@gmail.com wrote: Hello! How can I fill a drop box widget with content depends of another drop box? I'll explain better: I have 3 tables: db.define_table('categoria',      

[web2py] export from current view

2011-05-10 Thread cyber
I'm at a loss. I have a search view with two different forms. Description of the forms is in controller. Each form can select different rows from db and then that rows are shown at the bottom of the current view. So, the question is how to export received results? I tried to wrote special

[web2py] Re: How to get the current domain in routes.py?

2011-05-10 Thread Massimo Di Pierro
You can use the regex: (?Pdomain.*?) routes_in = ( ('140\.191\.\d+\.\d+:https://(?Pdomain.*?):POST /(?Pany.*) \.php', '/test/default/index?vars=\ganydomain=\gdomain'), ) On May 10, 1:00 am, Dan d...@imojo.de wrote: Hi Massimo, thanks a lot for your quick reply. I need the domain/hostname

[web2py] Re: web2py with Eclipse

2011-05-10 Thread Massimo Di Pierro
This is going to be easier in the future. Using trunk, just add this to models: from gluon import * request,session,response,T,cache=current.request,current,session,curremt.response,current.t,current.cache On May 10, 7:12 am, weheh richard_gor...@verizon.net wrote: I'm having trouble getting

Re: [web2py] Language selection

2011-05-10 Thread Marin Pranjic
You can use T.force('en') T.force('it') T.force('es') based on request.vars or arguments ex: http://myapp/?lang?es T.force(request.vars.lang) not sure how to do it with routes On Sun, May 8, 2011 at 11:47 PM, Miguel Morillo Iruela asellus2...@gmail.com wrote: Hello, I wonder if it is

Re: [web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 8:56:03 AM UTC-4, Tom A wrote: There are still a few references to 'Enterprise' around the place - e.g. there's a vertical text image in the online book on the top left of each page: http://www.web2py.com/book/default/toc That vertical image also appears

[web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-10 Thread villas
Hi Marek We had a long discussion about dropping the word 'enterprise' and what might be used instead. We had a lot of thoughts but Ninja and Bananas never came up LOL. See link here: http://groups.google.com/group/web2py/browse_thread/thread/5d4b6e38eac2260f/93f23d12336c1c14 Regards, D

[web2py] [tip] GitHub has an amazing online IDE

2011-05-10 Thread Bruno Rocha
I just start using git and github and I found this amazing online IDE http://c9.io which edits github repositories. Very nice layout and basic auto-complete feature. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

Re: [web2py] [tip] GitHub has an amazing online IDE

2011-05-10 Thread contatogilson...@gmail.com
Nice! _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/5/10 Bruno Rocha rochacbr...@gmail.com I just start using git and github and I found this amazing online IDE http://c9.io which edits github repositories. Very nice layout and basic

[web2py] Re: export from current view

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 8:28:35 AM UTC-4, cyber wrote: * def export_search_results(res=None, eres=None): response.headers['content-type']='text/csv' response.headers['Content-disposition'] = 'attachment; filename=export.csv' if res is None: response,flash =

Re: [web2py] [tip] GitHub has an amazing online IDE

2011-05-10 Thread Shishir Ramam
the underlying editor is ace - http://ace.ajax.org/ http://ace.ajax.org/ On Tue, May 10, 2011 at 7:21 AM, Bruno Rocha rochacbr...@gmail.com wrote: I just start using git and github and I found this amazing online IDE http://c9.io which edits github repositories. Very nice layout and basic

[web2py] Re: using CRYPT in SQLFORM.factory doesn't work?

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 2:10:07 AM UTC-4, niknok wrote: Anthony, sorry for the typo. I meant calling onvalidation=, and not onaccept That is the behavior I'm expecting, since I've seen that work like so before. Here's a stripped-down version of the function: def cnv():

[web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-10 Thread puercoespin
Oh, i want to contribute! What do you think: Web2py on GAE = Python in the cloud with Diamonds :) On 10 mayo, 16:17, villas villa...@gmail.com wrote: Hi Marek We had a long discussion about dropping the word 'enterprise' and what might be used instead. We had a lot of thoughts but Ninja

[web2py] Re: new code editor?

2011-05-10 Thread Anthony
On Monday, May 9, 2011 4:16:37 PM UTC-4, Massimo Di Pierro wrote: turns out codemirror is broken for me under chrome. The cursor gets stuck 100% of the times. I haven't downloaded it, but the online demo works for me in Chrome. Note, Google Code has integrated CodeMirror for editing files

Re: [web2py] [tip] GitHub has an amazing online IDE

2011-05-10 Thread Bruno Rocha
On Tue, May 10, 2011 at 11:41 AM, Shishir Ramam sra...@gmail.com wrote: the underlying editor is ace - http://ace.ajax.org/ Cool! I guess it can be integrated in to local web2py projects, I will give it a try.

[web2py] Re: web2py with Eclipse

2011-05-10 Thread weheh
MDP - thanks for the quick response. I don't currently use trunk, only Current Version. What then? On May 10, 8:46 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is going to be easier in the future. Using trunk, just add this to models: from gluon import *

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread raven
The problem seems to be that the server cannot find the css files. The css files are found using the html code: link href=/examples/static/css/home.css rel=stylesheet type=text/ css / On my windows server, browsing to http://127.0.0.1:8000/examples/static/css/home.css shows a listing of the

Re: [web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread Jonathan Lundell
On May 10, 2011, at 8:48 AM, raven wrote: The problem seems to be that the server cannot find the css files. The css files are found using the html code: link href=/examples/static/css/home.css rel=stylesheet type=text/ css / On my windows server, browsing to

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread raven
Do you have a routes.py? Any Apache rewriting? I do not know if I have a routes.py. It is a new installation. I am using the lighttpd server, not Apache. James

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 12:15:46 PM UTC-4, raven wrote: Do you have a routes.py? Any Apache rewriting? I do not know if I have a routes.py. It is a new installation. I am using the lighttpd server, not Apache. routes.py would be in your /web2py folder. If it's a fresh installation

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread raven
Thank you for the suggestion! This gave me the clue I needed to solve the problem. The server was configured to look for files in /home/james/web2py. I did the new installation to /home/james/web2py_new. So it couldn't find them. When I rename the old instalation, and renamed the new to

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread pbreit
You need to configure your web server to find the static files. Ex: server.document-root = /var/web2py/applications/myapp/static/ I'm not sure exactly how to config lighttpd. You either point it to your static files and crete an exception for web2py or vice versa. Or put a symbolic link in the

[web2py] Breaking up plugin_wiki

2011-05-10 Thread Ross Peoples
I think I saw it mentioned here before, but are there any plans to break up plugin_wiki into smaller plugins? There are some individual plugins inside plugin_wiki that are really nice on their own, and it's kind of shame that you'd have to use the entire package just to use one or two of the

[web2py] Re: web2py with Eclipse

2011-05-10 Thread Ross Peoples
The only thing that had really worked for me in the past was doing the if 0: trick: if 0: from gluon.dal import DAL from gluon.tools import Auth db = DAL() auth = Auth() The code won't actually get executed, it's just there to give Eclipse and other IDE's some direction. If

Re: [web2py] Re: update is not saved in the database??

2011-05-10 Thread Thadeus Burgess
Use ``update_record`` instead of ``update``. the ``update`` function comes from the dict parent class, and does not issue SQL. ``update_record`` is a web2py thing that will take any changes made to the record instance (by use of assignment or update function) and issue the appropriate SQL --

[web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-10 Thread Marek Mollin
I apologise for lack of study. Any way I remembered it bugged me while ago... and I saw the title on web2py homepage since I lately returned to using it... web2py - ninja programming went bananas! anyway its good this has changes since as said before in my world 'enterprise' = legacy M, On 10

[web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-10 Thread Massimo Di Pierro
I love this: web2py - ninja programming went bananas! whatever it means. On May 10, 11:55 am, Marek Mollin rog...@gmail.com wrote: I apologise for lack of study. Any way I remembered it bugged me while ago... and I saw the title on web2py homepage since I lately returned to using it...

[web2py] Re: web2py and sencha

2011-05-10 Thread pbreit
Should work fine. You will end up returning a lot of data in JSON format so have a look: http://web2py.com/book/default/chapter/09#HTML,-XML,-and-JSON You will probably need to create a new layout.html file from scratch that uses Sencha's CSS and JS libraries. As always, start simply, get it

Re: [web2py] web2py and sencha

2011-05-10 Thread Bruno Rocha
I saw SahanaEden using ExtJs sometime ago, but I do not have the link.. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Tue, May 10, 2011 at 1:02 PM, 黄祥 steve.van.chris...@gmail.com wrote: hi, is it possible to use sencha on web2py? http://www.sencha.com

[web2py] Re: export from current view

2011-05-10 Thread pbreit
That's not going to work. Instead of: * def export_search_results(res=None, eres=None): * You need something like this: * def export_search_results(): if request.vars.eres: r = db(..==eres).select() return '%s\n'%';'.join... {{=A('export to CSV',

[web2py] Display a PDF within HTML

2011-05-10 Thread Drise
Is it possible to display a pdf file inline with html? I'm trying to do a sort of newspaper display, where the file uploaded would be a pdf file. Or... (I just thought of this) Would it be better to convert it to a jpeg on the fly instead? Hm... And Google really didnt yield any results... so

[web2py] Issue with the database

2011-05-10 Thread JagChris
I have been trying to get the username and so forth from login in my database i made but i get an error that there is no column such as auth_user.last_name here is my code below for this part : rscore = session.righton userfname = db.auth_user.first_name userlname =

[web2py] Re: Issue with the database

2011-05-10 Thread pbreit
userfname = auth.user.first_name etc. From the Book: auth.user contains a copy of the db.auth_user records for the current logged in user or None otherwise. There is also also a auth.user_id which is the same as auth.user.id (i.e. the id of the current logger in user) or None.

[web2py] Re: Display a PDF within HTML

2011-05-10 Thread pbreit
It's not really possible. You would need to serve via a viewer such as Scribd: http://www.scribd.com/ipaper or Google: http://docs.google.com/viewer Or just have it linked and for most users it will open into a PDF viewer either embedded in the browser window or in a new window.

[web2py] Re: Display a PDF within HTML

2011-05-10 Thread Drise
Sothe PDf would have to be uploaded to google docs and then I just link to it? On May 10, 12:27 pm, pbreit pbreitenb...@gmail.com wrote: It's not really possible. You would need to serve via a viewer such as Scribd:http://www.scribd.com/ipaperor Google:http://docs.google.com/viewer Or just

[web2py] Re: Issue with the database

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 1:22:07 PM UTC-4, JagChris wrote: userfname = db.auth_user.first_name The above is giving you the entire 'first_name' Field object of the 'auth_user' table. Instead, you probably want the specific first name of the currently logged in user. For that, you can

[web2py] Multiple tables: update/insert/delete: in one form

2011-05-10 Thread Vineet
Hi, I have a task related to the below-referred thread (but with a different requirement). I have multiple MySQL tables to be tackled in one form. The user will make changes to certain fields. As a result, table1 might require : insert or update or delete or no operation; table2 might require :

[web2py] Re: How to get the current domain in routes.py?

2011-05-10 Thread Dan
Hi Massimo, thanks again for your reply. Is this also possible for routes_out? routes_out = ( ('(?Pdomain.*?)/myapp/user/$anything', 'https://\gdomain/user/ $anything'), ) This does not work. On May 10, 2:43 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: You can use the

Re: [web2py] Display a PDF within HTML

2011-05-10 Thread Bruno Rocha
There are opensource versions of Flash Paper http://forums.swishzone.com/index.php?showtopic=23508 http://forums.swishzone.com/index.php?showtopic=23508http://swftools.org/ http://swftools.org/Which converts PDF to SWF on demand.. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On

Re: [web2py] Re: Display a PDF within HTML

2011-05-10 Thread Vasile Ermicioi
For example, if you wanted to view the PDF at the URL http://labs.google.com/papers/bigtable-osdi06.pdf , you would use the URL: http://docs.google.com/viewer?url=http%3A%2F%2Flabs.google.com%2Fpapers%2Fbigtable-osdi06.pdf

Re: [web2py] Re: Display a PDF within HTML

2011-05-10 Thread Jonathan Lundell
On May 10, 2011, at 11:41 AM, Vasile Ermicioi wrote: For example, if you wanted to view the PDF at the URL http://labs.google.com/papers/bigtable-osdi06.pdf , you would use the URL: http://docs.google.com/viewer?url=http%3A%2F%2Flabs.google.com%2Fpapers%2Fbigtable-osdi06.pdf A minor point:

[web2py] python 2.7 for web2py on windows?

2011-05-10 Thread Philip
Is there a web2py for windows package that uses python 2.7 instead of 2.5? or is there an easy way to upgrade it? Thanks, Philip

Re: [web2py] python 2.7 for web2py on windows?

2011-05-10 Thread Vasile Ermicioi
if you have python installed you don't need windows package, just download source distribution and run web2py.py

[web2py] Re: How to get the current domain in routes.py?

2011-05-10 Thread Massimo Di Pierro
No. On May 10, 1:37 pm, Dan d...@imojo.de wrote: Hi Massimo, thanks again for your reply. Is this also possible for routes_out? routes_out = (         ('(?Pdomain.*?)/myapp/user/$anything', 'https://\gdomain/user/ $anything'), ) This does not work. On May 10, 2:43 pm, Massimo Di

[web2py] Re: Issue with the database

2011-05-10 Thread JagChris
userfname = auth_user.first_name NameError: global name 'auth_user' is not defined i get an error that it is not defined...how do i fix that

[web2py] Re: Multiple tables: update/insert/delete: in one form

2011-05-10 Thread Massimo Di Pierro
Can you make a concrete example? to some extend you can do this but in order to be general, it requires some programming. Provide an example I can can show I would do it. On May 10, 12:26 pm, Vineet vineet.deod...@gmail.com wrote: Hi, I have a task related to the below-referred thread (but with

[web2py] Re: Issue with the database

2011-05-10 Thread JagChris
sorry i got it working, auth.user.etc thanks much

[web2py] Re: Issue with the database

2011-05-10 Thread pbreit
userfname = auth.user.first_name etc. From the Book: auth.user contains a copy of the db.auth_user records for the current logged in user or None otherwise. There is also also a auth.user_id which is the same as auth.user.id (i.e. the id of the current logger in user) or None.

[web2py] Re: Issue with the database

2011-05-10 Thread Massimo Di Pierro
userfname = auth.user and auth.user.first_name On May 10, 2:19 pm, JagChris cja...@gmail.com wrote:  userfname = auth_user.first_name NameError: global name 'auth_user' is not defined i get an error that it is not defined...how do i fix that

[web2py] query

2011-05-10 Thread luifran
I have the following query: usuarios_in=db(db.auth_membership.user_id==db.auth_user.id).select(db.auth_user.username) #This show users in membership I have show users out of membership with the following query: usuarios_out=db(db.auth_membership.user_id!

[web2py] Putting a timer on the page and passing it back

2011-05-10 Thread JagChris
I have a view where a give some math problems and the persons have to give in their answers and then they submit it and i calculate how many answers are right and i redirect them to a view which shows how much they get right. On submit though, i want to submit the time they take to complete the

[web2py] Key error in controller db select

2011-05-10 Thread james c.
I am having trouble with a key exception error. The problem is occuring when the controller tries to read a database defined earlier in the controller. The Error Message is occurring here: company_name = 'BIGkittyBIG' company_accounts_db = company_name + '_accounts_' + str(auth.user_id)

[web2py] Re: query

2011-05-10 Thread pbreit
I don't totally follow. Normally you would use has_membership: http://web2py.com/book/default/chapter/08#Authorization The != might not work because everyone who is in one group might also not be in another group. I think you want to do something where you are explicit about which group or

[web2py] Re: query

2011-05-10 Thread pbreit
You can play around with queries in appadmin to see if they do what you want: http://127.0.0.1:8001/appadmin/select/db?query=db.auth_membership.user_id!=db.auth_user.id

Re: [web2py] Re: web2py with Eclipse

2011-05-10 Thread Sebastian E. Ovide
yes, I'm using that trick and it is working fine... except in the views On Tue, May 10, 2011 at 5:52 PM, Ross Peoples ross.peop...@gmail.comwrote: The only thing that had really worked for me in the past was doing the if 0: trick: if 0: from gluon.dal import DAL from gluon.tools

[web2py] Re: Putting a timer on the page and passing it back

2011-05-10 Thread pbreit
I suppose you could include a hidden input with the value request.now and then do some time math (http://docs.python.org/library/datetime.html#datetime.timedelta). Note that this is hackable. To make it less hackable, you could store the time in session.

[web2py] Re: Putting a timer on the page and passing it back

2011-05-10 Thread JagChris
on the view where i have them inputting their answers i have place some javascript. but how do i use ajax to pass that value to python

[web2py] Re: Putting a timer on the page and passing it back

2011-05-10 Thread JagChris
i heard that there is a built in javascript function or i think ajax that can call a python functon in the controller On May 10, 4:48 pm, JagChris cja...@gmail.com wrote: on the view where i have them inputting their answers i have place some javascript. but how do i use ajax to pass that value

[web2py] Re: web2py with Eclipse

2011-05-10 Thread weheh
Yeah, the fugly 0 trick works, but what a 2-bagger! Can't wait for the new release. On May 10, 4:44 pm, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: yes, I'm using that trick and it is working fine... except in the views On Tue, May 10, 2011 at 5:52 PM, Ross Peoples

[web2py] Re: Display a PDF within HTML

2011-05-10 Thread Drise
Thank you. Helpful as always. On May 10, 1:55 pm, Jonathan Lundell jlund...@pobox.com wrote: On May 10, 2011, at 11:41 AM, Vasile Ermicioi wrote: For example, if you wanted to view the PDF at the URLhttp://labs.google.com/papers/bigtable-osdi06.pdf, you would use the

[web2py] Re: Putting a timer on the page and passing it back

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 4:48:35 PM UTC-4, JagChris wrote: on the view where i have them inputting their answers i have place some javascript. but how do i use ajax to pass that value to python You don't necessarily need to use ajax to pass the value. You can create a hidden field in your

[web2py] Re: Putting a timer on the page and passing it back

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 4:52:57 PM UTC-4, JagChris wrote: i heard that there is a built in javascript function or i think ajax that can call a python functon in the controller This: http://web2py.com/book/default/chapter/10#The-ajax-Function But I'm not sure you need it.

[web2py] nested LOADs -- 2 cases

2011-05-10 Thread weheh
What happens when a LOAD('test1','test1.load',ajax=True) loads another LOAD('test2','test2.load',ajax=False)? Conversely, what happens when a LOAD('test1','test1.load',ajax=False) loads another LOAD('test2','test2.load',ajax=True)?

[web2py] Re: Key error in controller db select

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 4:01:34 PM UTC-4, james c. wrote: I am having trouble with a key exception error. The problem is occuring when the controller tries to read a database defined earlier in the controller. The Error Message is occurring here: company_name = 'BIGkittyBIG'

[web2py] Re: Putting a timer on the page and passing it back

2011-05-10 Thread pbreit
I guess you could do something like: scriptvar currentTime = Date();/script input type=hidden name=time a href=# onclick=document.getElementById(time).value=currentTime.getSeconds()save/a Probably much easier to the other way, though.

[web2py] Re: nested LOADs -- 2 cases

2011-05-10 Thread pbreit
I'd have to try it out to know for sure but the problem I foresee is that your components/test1.html file will not be extending layout.html and thus may not have access to the LOAD() or Ajax functions. It's possible that it might only work with ajax=False or not work at all.

[web2py] Re: nested LOADs -- 2 cases

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 5:17:57 PM UTC-4, weheh wrote: What happens when a LOAD('test1','test1.load',ajax=True) loads another LOAD('test2','test2.load',ajax=False)? I assume the original page loads, then there's an ajax call to 'test1', and on the server side, when the 'test1' view is

Re: [web2py] nested LOADs -- 2 cases

2011-05-10 Thread Bruno Rocha
I needed to do that here: http://serafimnatural.com.br/ http://serafimnatural.com.br/the component: http://serafimnatural.com.br/fotoform loads the component http://serafimnatural.com.br/enviarfotos And this is loaded in to a modal, where the JS and CSS is inherited from layout.html -- Bruno

Re: [web2py] nested LOADs -- 2 cases

2011-05-10 Thread Bruno Rocha
to what happens go to http://serafimnatural.com.br/ and click in 'Enviar Fotos' link to see the uploadify control loaded. On Tue, May 10, 2011 at 6:34 PM, Bruno Rocha rochacbr...@gmail.com wrote: I needed to do that here: http://serafimnatural.com.br/ http://serafimnatural.com.br/the

[web2py] Protect or Encrypt Source Code

2011-05-10 Thread Ross Peoples
I know this question has been asked before and I have been doing research on the matter for a while now. I am writing an application that has some proprietary stuff in it, and the plan is to sell the compiled w2p file. I know that the pyc files can be decompiled. A quick trip to

[web2py] Bug with + in email address

2011-05-10 Thread pbreit
It seems that a '+' in an email address isn't being handled correctly and leads to an error: IntegrityError: column name is not unique For example, I already signed up as p...@pricetack.com and am trying to register as p...@pricetack.com. This should be allowed and are unique addresses. + is a

[web2py] Re: Protect or Encrypt Source Code

2011-05-10 Thread Massimo Di Pierro
Any language can be decompiled/disassembled. Does it make any difference whether the decompiled/disassembled code is identical to the original or not? Massimo On May 10, 4:38 pm, Ross Peoples ross.peop...@gmail.com wrote: I know this question has been asked before and I have been doing research

[web2py] Re: Bug with + in email address

2011-05-10 Thread pbreit
Actually, I'm not quite sure what the problem is yet.

[web2py] Re: Protect or Encrypt Source Code

2011-05-10 Thread Ross Peoples
What matters is that the code is not easily decompiled, and if it is, then almost impossible to read or figure out what the code is doing. The idea is to protect some or all of the code from being stolen, basically. I just used depython.net as an example of how easy it is to get an almost

[web2py] Re: Protect or Encrypt Source Code

2011-05-10 Thread pbreit
It might be easier to explain to whoever is pushing for this that it is not worthwhile.

[web2py] Re: Key error in controller db select

2011-05-10 Thread james c.
Thanks Anthony, I'm trying to create a user named table, using company_accounts_db as a variable. Prior to the select I defined and created a user named table by using the variable company_accounts_db. User_id 8 enters a company name within a form. The form input is used to define the variable

[web2py] Massimo: What is happening with Wiki Plugin

2011-05-10 Thread Oscar
Hi Massimo, I´m using your plugin_wiki for build a Wiki, so I had found a lot of issues, I don´t know if these are bugs or a simple messed up plugin_wiki installation. Before describe my problem I must state that all DB are set as migrate_enabled=False I had created some pages in the Wiki,

[web2py] Re: Key error in controller db select

2011-05-10 Thread villas
company_name = 'BIGkittyBIG' Try it with a lowercase name. I know that either case should work, but this has been an issue in the past and worth considering/trying. In this instance, I suppose it would be 'smallkittysmall' :)

Re: [web2py] Re: web2py and sencha

2011-05-10 Thread Stifan Kristi
thank you so much for your hints and pointers pbreit and bruno, i'll try your advice.

[web2py] Re: Protect or Encrypt Source Code

2011-05-10 Thread villas
On May 10, 11:52 pm, pbreit pbreitenb...@gmail.com wrote: It might be easier to explain to whoever is pushing for this that it is not worthwhile. Obfuscation is not security, but it helps. Your house may not be impregnable, but I bet you still close your front door and hide your spare keys

[web2py] gluon/tools error

2011-05-10 Thread pbreit
I got the following error on trunk. Is this related to any of the recent changes or do I need to investigate further on my side? It's a totally fresh install. Traceback (most recent call last): File /var/web2py/gluon/restricted.py, line 181, in restricted ccode = code File

[web2py] Re: gluon/tools error

2011-05-10 Thread pbreit
Possible fals alarm. Resolved with a reboot.

[web2py] Re: drop down box content depends of another drop box

2011-05-10 Thread pepe_eloy
Thanks for the answer. Yeah, I tried that solution, but when can I save in the table empresa the fields category and subcategoria only the categoria field has values. Why? Thanks

[web2py] Re: backward compatibility problem?

2011-05-10 Thread blackthorne
Just to confirm, it was fixed to me Thanks On Apr 24, 5:07 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This should be solved in latest trunk. Can you confirm? We are testing a new import mechanism. On Apr 23, 12:20 am, blackthorne francisco@gmail.com wrote: hi trying

[web2py] Re: Key error in controller db select

2011-05-10 Thread Anthony
On Tuesday, May 10, 2011 6:58:05 PM UTC-4, james c. wrote: Prior to the select I defined and created a user named table by using the variable company_accounts_db. User_id 8 enters a company name within a form. The form input is used to define the variable db name by: company_accounts_db

[web2py] jquery and coffeescript

2011-05-10 Thread Massimo Di Pierro
http://buhrmi.tumblr.com/post/5371876452/how-coffeescript-makes-jquery-more-fun-than-ever unfortuntaly makes debugging harder than it is already.

[web2py] Re: Massimo: What is happening with Wiki Plugin

2011-05-10 Thread Massimo Di Pierro
what database? On May 10, 6:22 pm, Oscar oscar.m...@gmail.com wrote: Hi Massimo, I´m using your plugin_wiki for build a Wiki, so I had found a lot of issues, I don´t know if these are bugs or a simple messed up plugin_wiki installation. Before describe my problem I must state that all DB

Re: [web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-10 Thread Jason Brower
:) Let the customer decide what it means. That's the beauty of it. :P On 05/10/2011 07:57 PM, Massimo Di Pierro wrote: I love this: web2py - ninja programming went bananas! whatever it means. On May 10, 11:55 am, Marek Mollinrog...@gmail.com wrote: I apologise for lack of study. Any way I

[web2py] jQuery styling plugin wich allows you to skin form elements.

2011-05-10 Thread Bruno Rocha
Automatic form styles http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/ plus: http://www.dfc-e.com/metiers/multimedia/opensource/jquery-fancyzoom/ http://www.dfc-e.com/metiers/multimedia/opensource/jquery-fancyzoom/ -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

[web2py] Re: can not update table that has multi-select widget

2011-05-10 Thread mart
def multiselect_widget(f,v): import uuid d_id = multiselect- + str(uuid.uuid4())[:8] On May 9, 9:58 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please post the relevant code so we can reproduce the problem. On May 9, 5:47 pm, mart msenecal...@gmail.com wrote:

[web2py] Re: can not update table that has multi-select widget

2011-05-10 Thread mart
Hi Massimo, so, I'm not sure what's the most relevant, so i'm posting what seems to be relevant (unless I missed something) The code for the widget is straight out of slices, so even I can't break a copy paste (or, unlikely to ;) ) which is in the model. def multiselect_widget(f,v): import

  1   2   >