[web2py] Re: syntax checker won't let me save this

2010-12-23 Thread rāma
Simple mistake. Sorry! On Dec 23, 2:05 pm, rāma ranjeev...@gmail.com wrote: I tried to construct a validator: db.sender.keywords.requires = IS_IN_DB(db( db.auth_user.id=user_id ), db.userkeywords.keyword) I was able to do this in previous versions. Please help.

[web2py] Re: The stability of web2py releases

2010-12-23 Thread cjrh
On Dec 22, 6:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: What I do is if my app works with a certain version, I don't ever upgrade the web2py unless I need a brand new feature or bugfix that effects me. +1. If you don't need anything new, no point in upgrading.

[web2py] Re: The stability of web2py releases

2010-12-23 Thread cjrh
On Dec 22, 9:42 pm, mdipierro mdipie...@cs.depaul.edu wrote: We can change the name. It is not truly a nigthly built. it is closer to a release candidate even if the final release is not equivalent to the latest nightly built. You should definitely change the name from nightly to release

[web2py] Re: Great summary of web2py

2010-12-23 Thread cjrh
On Dec 23, 8:55 am, mdipierro mdipie...@cs.depaul.edu wrote: +1 I think we should go after PHP, ASP, JSP I think you shouldn't care. Just inject as much quality into web2py as possible, don't worry about the competition. I would actually prefer that the hordes of PHP, ASP and JSP developers

Re: [web2py] Re: Great summary of web2py

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 4:16 AM, VP vtp2...@gmail.com wrote: I've supported web2py for a long time.  But I think it's time to rethink about PR. Frankly, I think this Flask/Django business is a distraction.  I think Massimo should completely ignore and do not say anything about Flask or Django.

[web2py] Re: Encountering problem with a computer field

2010-12-23 Thread cjrh
On Dec 23, 2:04 am, mdipierro mdipie...@cs.depaul.edu wrote: I can add a try except so that web2py does not tries to compute fields when there is not enough information. The downside is that a typo will result in a silent failure to compute. Perhaps we should do this anyway. If you're going

Re: [web2py] another funtion in view

2010-12-23 Thread Arun K.Rajeevan
Is it that, you need the view index.html to render the results from both view and index controller? In that case, within index.html use ajax LOAD function to get content of view.html. here, view.html doesn't have to extend layout.html.

Re: [web2py] Re: Sharing sessions and authentication

2010-12-23 Thread Marin Pranjic
Key was the same in app1, app2 ,and app3, but not in shared (don't know why). I've set the same key in all apps and it seems to be working now. Thanks! On Thu, Dec 23, 2010 at 7:57 AM, mdipierro mdipie...@cs.depaul.edu wrote: Yes if they are providing registration/login/change password. If

Re: [web2py] Merry Christmas

2010-12-23 Thread Stef Mientki
+1, btw, what a nice signature !! cheers, Stef On 23-12-2010 08:17, ? Kuldeep Singh PHP FreeLancer Web Developer,SEO Services wrote: Marry Christmas to all of you ...From Kaysellers.com On 23 December 2010 12:40, ma...@rockiger.com mailto:ma...@rockiger.com rocki...@googlemail.com

[web2py] App admin error

2010-12-23 Thread Arun K.Rajeevan
I've following in model db.define_table('languages', Field http://127.0.0.1:8000/examples/global/vars/Field('full', 'string', length=30, notnull=True, required=True), Field http://127.0.0.1:8000/examples/global/vars/Field('short', 'string', length=10 ,

[web2py] Re: customizing registration layout

2010-12-23 Thread Plumo
OK, so there isn't a better way than half a year back.

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread rochacbruno
You need to edit /static/CSS/base.css The form and imputs width is defined there. Enviado via iPhone Em 23/12/2010, às 09:38, Sahil Arora sahilarora...@gmail.com escreveu: I used the following code to generate a form in attached image. Is it possible to change the size of the fields in the

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Sahil Arora
but i want only a particular field size to be decreased not all. Is there any other alternative? On 12/23/10, rochacbruno rochacbr...@gmail.com wrote: You need to edit /static/CSS/base.css The form and imputs width is defined there. Enviado via iPhone Em 23/12/2010, às 09:38, Sahil Arora

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Arun K.Rajeevan
add a new css rule in /static/CSS/base.css than editing what's already there. So will render elements properly in other parts of page

[web2py] Field type problem in SQLFORM.factory in 1.91.4 possible before

2010-12-23 Thread szimszon
In SQLFORM.factory's Field field: Field( 'user_id', db.auth_user, label = 'Felhasználó e-mail', requires = IS_NULL_OR( IS_IN_DB( db, db.auth_user.id, '% (first_name)s' ) ) ), But works in 1.79.2 and seems to work if I use 'integer' and not db.auth_user I have db.define_table(

[web2py] export_to_csv_file and colnames

2010-12-23 Thread howesc
Massimo and crew, I am trying to use export_to_csv_file() on a rows object with the colnames parameter on google app engine. it turns out that the method (in both sql.py and the new dal.py) outputs the proper column names, but then outputs data for every column in the table. the culprit is

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Martín Mulone
Can you show me the source html of this form generated? 2010/12/23 Sahil Arora sahilarora...@gmail.com: I used the following code to generate a form in attached image. Is it possible to change the size of the fields in the form. I want to decrease size of input field of Estimated time and the

Re: [web2py] Merry Christmas

2010-12-23 Thread Martín Mulone
Merry Christmas and a happy new to the group. 2010/12/23 Stef Mientki stef.mien...@gmail.com: +1, btw, what a nice signature !! cheers, Stef On 23-12-2010 08:17, ⎝⏠⏝⏠⎠ Kuldeep Singh PHP FreeLancer Web Developer,SEO Services wrote: Marry Christmas to all of you ...From Kaysellers.com On

[web2py] New to web2py

2010-12-23 Thread Monte Milanuk
Hello all, New guy here... I've been looking all over the web for something that meets all the needs of a couple projects I want to do, and it looks like web2py will just about cover them! I'm getting my feet wet with the examples, and got sidetracked ;) by the gae sql designer - holy cow that

[web2py] Re: Encountering problem with a computer field

2010-12-23 Thread mdipierro
Need to think about it. On Dec 23, 3:51 am, cjrh caleb.hatti...@gmail.com wrote: On Dec 23, 2:04 am, mdipierro mdipie...@cs.depaul.edu wrote: I can add a try except so that web2py does not tries to compute fields when there is not enough information. The downside is that a typo will

[web2py] Re: App admin error

2010-12-23 Thread mdipierro
At some point in time you changed Field('word', 'reference words', ...) to Field('word', 'list:reference words', ...) and you had data in the database. SQLite let you do that (because SQLite does not check field type and does not support alter table), so now you have corrupted data in the

[web2py] Re: Merry Christmas

2010-12-23 Thread mdipierro
same here to all of you! On Dec 23, 7:24 am, Martín Mulone mulone.mar...@gmail.com wrote: Merry Christmas and a happy new to the group. 2010/12/23 Stef Mientki stef.mien...@gmail.com: +1, btw, what a nice signature !! cheers, Stef On 23-12-2010 08:17, ⎝⏠⏝⏠⎠ Kuldeep Singh PHP

[web2py] Re: form.accepts = False. How to find out why

2010-12-23 Thread DenesL
Two things to check: 1) you might have session.forget() in the controller, maybe outside the action. 2) you might be using a custom form and it is missing the hidden fields, if you don't have the _formkey then the form will not be accepted. On Dec 23, 2:39 am, Johann Spies

[web2py] Re: Merry Christmas

2010-12-23 Thread DenesL
+1 On Dec 23, 9:20 am, mdipierro mdipie...@cs.depaul.edu wrote: same here to all of you!

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Sahil Arora
h1Create a new task/h1 form action= enctype=multipart/form-data method=post table tr tdbType :/b/tdtddivselect class=reference id=task_type name=typeoption value=/optionoption value=2Coding/optionoption value=1Designing/optionoption value=3Testing/option/select/div/td /trtr tdbTitle

[web2py] Re: Merry Christmas

2010-12-23 Thread Anthony
Indeed, Merry Christmas and Happy New Year to all the fine folks here. :D Anthony

Re: [web2py] Re: Merry Christmas

2010-12-23 Thread Bruno Rocha
I wish a happy new year to all of the group. and that 2011 will be a year of achievements and more good developments for our dear web framework. This year I were actively connected with the web2py development. I put aside other technologies (kicked the ass of my bosses) and founded my own

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Martín Mulone
Add to your css definition or in /static/CSS/base.css this rule and tell if this is working: #task_estimated_time_unit {width: 80px;} 2010/12/23 Sahil Arora sahilarora...@gmail.com: h1Create a new task/h1 form  action= enctype=multipart/form-data method=post table tr tdbType

Re: [web2py] Re: translation dict name

2010-12-23 Thread Richard Vézina
Hello Massimo, I have one more question about the process of pickle the translation file... Do you lock file with flock? Or just open the file and close it after the pickling and applying transformation to the dict is enough to lock the file during the process? Is this code correct to not having

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Sahil Arora
thanks...that worked On 12/23/10, Martín Mulone mulone.mar...@gmail.com wrote: Add to your css definition or in /static/CSS/base.css this rule and tell if this is working: #task_estimated_time_unit {width: 80px;} 2010/12/23 Sahil Arora sahilarora...@gmail.com: h1Create a new task/h1 form  

Re: [web2py] export_to_csv_file and colnames

2010-12-23 Thread Thadeus Burgess
that would be a bug for sure :p -- Thadeus On Thu, Dec 23, 2010 at 6:59 AM, howesc how...@umich.edu wrote: Massimo and crew, I am trying to use export_to_csv_file() on a rows object with the colnames parameter on google app engine. it turns out that the method (in both sql.py and the

Re: [web2py] Re: translation dict name

2010-12-23 Thread Richard Vézina
There is also this lib : http://pypi.python.org/pypi/lockfile/ http://www.mail-archive.com/spambayes-dev@python.org/msg00727.html Richard On Thu, Dec 23, 2010 at 10:13 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello Massimo, I have one more question about the process of

[web2py] Re: Cache stored at request, does not sync with other threads until new request

2010-12-23 Thread Dragonfyre13
So I've gone back and forth on this again and again. It looks like cache.ram being process bound (so even though I only have one web2py instance, it's running across multiple wsgi processes?) was the problem. The issue is, I'm having similar issues (in a very different location) using cache.disk.

[web2py] Re: Merry Christmas

2010-12-23 Thread ron_m
+1

[web2py] Re: couchdb support again

2010-12-23 Thread ron_m
ii python-couchdb 0.6-1 from Ubuntu 10.04.1 dpkg -l I have to go visit a customer site today so will look again tonight. I think it is probably time for me to update direct from Apache. This may be a problem since the rest of the release

Re: [web2py] Re: translation dict name

2010-12-23 Thread Richard Vézina
Ok, I think I found what you do : From the DAL.py Version 1.88.2 tfile = open(self._dbt, 'w') portalocker.lock(tfile, portalocker.LOCK_EX) cPickle.dump(sql_fields, tfile) portalocker.unlock(tfile) tfile.close()

Re: [web2py] Re: translation dict name

2010-12-23 Thread ron_m
web2py uses portalocker.py look under gluon. There are many examples of use such as locking the session file in globals.py

Re: [web2py] Re: translation dict name

2010-12-23 Thread Richard Vézina
Find it! My only remaning problem is the # coding: utf8 at the top of translation file... I don't see how dal.py manage it... I could made a readline and remove it in a other instance of the open file or something like that, but should have a simpler way to manage it. Richard On Thu, Dec 23,

Re: [web2py] Re: form.accepts = False. How to find out why

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 6:42 AM, DenesL wrote: Two things to check: 1) you might have session.forget() in the controller, maybe outside the action. 2) you might be using a custom form and it is missing the hidden fields, if you don't have the _formkey then the form will not be accepted.

Re: [web2py] Re: translation dict name

2010-12-23 Thread Richard Vézina
Ok, everything seems to be in languages.py... I didn't noticed at first read that the code I was seeking for was there... I will see if I get what I want... [?] Richard On Thu, Dec 23, 2010 at 11:31 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Find it! My only remaning problem is

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 1:04 AM, cjrh wrote: On Dec 22, 6:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: What I do is if my app works with a certain version, I don't ever upgrade the web2py unless I need a brand new feature or bugfix that effects me. +1. If you don't need anything new,

[web2py] web2py_utils bug

2010-12-23 Thread Francisco Feijoo
Hello everybody, this is my first post in the group. THANKS for this great web framework. I want to include tests in my project. Searching I found web2py_utils (web2py_utils-0.0.13dev) and test_runner as the best tool for web2py and unit test. Running the tests I have this error: File

Re: [web2py] Re: translation dict name

2010-12-23 Thread Richard Vézina
Bingo! Richard On Thu, Dec 23, 2010 at 11:37 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok, everything seems to be in languages.py... I didn't noticed at first read that the code I was seeking for was there... I will see if I get what I want... [?] Richard On Thu, Dec 23,

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 5:37 PM, Jonathan Lundell jlund...@pobox.com wrote: On Dec 23, 2010, at 1:04 AM, cjrh wrote: On Dec 22, 6:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: What I do is if my app works with a certain version, I don't ever upgrade the web2py unless I need a brand new

[web2py] Possible bug in URL

2010-12-23 Thread mr.freeze
Given this url: URL(args=1,vars=dict(v='yes'),anchor='end') It produces: http://server/app/default/index/1#end?v=yes Problem: request.vars is empty This url: http://server/app/default/index/1?v=yes#end request.vars is populated and the anchor works Shouldn't the anchor be at the end of the query

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 8:58 AM, Branko Vukelić wrote: On Thu, Dec 23, 2010 at 5:37 PM, Jonathan Lundell jlund...@pobox.com wrote: On Dec 23, 2010, at 1:04 AM, cjrh wrote: On Dec 22, 6:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: What I do is if my app works with a certain version, I

Re: [web2py] Possible bug in URL

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 9:09 AM, mr.freeze wrote: Given this url: URL(args=1,vars=dict(v='yes'),anchor='end') It produces: http://server/app/default/index/1#end?v=yes Problem: request.vars is empty This url: http://server/app/default/index/1?v=yes#end request.vars is populated and the

[web2py] Re: Encountering problem with a computer field

2010-12-23 Thread Magnitus
I've thought about the dependencies problem a little bit. Maybe add some kind of hook so that the user can define the dependencies of the computed field himself. If he doesn't define them, the current behavior occurs. If he defines them, the behavior could be as follow: 1) All the dependencies

[web2py] Re: Cache stored at request, does not sync with other threads until new request

2010-12-23 Thread Dragonfyre13
Nevermind, I wasn't clearing the cache in one place, so cache simply didn't get updated with the right value when it needed to. On Dec 23, 9:27 am, Dragonfyre13 dragonfyr...@gmail.com wrote: So I've gone back and forth on this again and again. It looks like cache.ram being process bound (so

Re: [web2py] Possible bug in URL

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 9:29 AM, Jonathan Lundell wrote: On Dec 23, 2010, at 9:09 AM, mr.freeze wrote: Given this url: URL(args=1,vars=dict(v='yes'),anchor='end') It produces: http://server/app/default/index/1#end?v=yes Problem: request.vars is empty This url:

[web2py] Re: Possible bug in URL

2010-12-23 Thread mr.freeze
Thanks for confirming. I will send Massimo a patch. On Dec 23, 11:56 am, Jonathan Lundell jlund...@pobox.com wrote: On Dec 23, 2010, at 9:29 AM, Jonathan Lundell wrote: On Dec 23, 2010, at 9:09 AM, mr.freeze wrote: Given this url: URL(args=1,vars=dict(v='yes'),anchor='end')

[web2py] Re: App admin error

2010-12-23 Thread Arun K.Rajeevan
Thank you for reply. I thought it's the case. But as far as I can remember, I removed database folder earlier and started again. Anyway, I'll try again and see, if that's the problem.

[web2py] Url variable's problem

2010-12-23 Thread Arun K.Rajeevan
See following code, I expect it to redirect to a url 1) if user don't touch dropdown: http://127.0.0.1:8000/init/default/search/lang/word?indx=0 but it shows http://127.0.0.1:8000/init/default/search/lang/word. *Why no vars?* 2) if user altered dropdown:

Re: [web2py] Url variable's problem

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 10:15 AM, Arun K.Rajeevan wrote: See following code, I expect it to redirect to a url 1) if user don't touch dropdown: http://127.0.0.1:8000/init/default/search/lang/word?indx=0 but it shows http://127.0.0.1:8000/init/default/search/lang/word. Why no vars? 2) if

Re: [web2py] Url variable's problem

2010-12-23 Thread Arun K.Rajeevan
It's not a list. Complete logic is given in the first post, where this index is forming. Hidden field's value is set when select box changes. and is retrieved in form.accepts() that's all. Each time, I select an item hidden field's value changes. (I tried with firebug console.) And why this is

[web2py] GAE shows problem.

2010-12-23 Thread Arun K.Rajeevan
see GAE error message. (it runs perfectly fine, if web2py run stand alone) And was running ok, till previos hour. What I can track is *init/controllers/default.py:index, line 5, in module *and that line is perfect (given below) and runs ok in web2py stand alone. *options = [OPTION(row.full + '

Re: [web2py] Url variable's problem

2010-12-23 Thread Arun K.Rajeevan
Currently , I get selected value, through form.accepts or request.vars. I need to keep values in form unaltered. and this is the only way. *That said, If I can get equivalent of selectedIndex in JS in server side, I can live without this problem( as of now).* *But, I'm curious to know, why this

[web2py] Re: Merry Christmas

2010-12-23 Thread Pepe Araya
Hey! Merry Christmas!! good vibes for all!

[web2py] Re: Merry Christmas

2010-12-23 Thread Niphlod
+1 On Dec 23, 8:51 pm, Pepe Araya pepea...@gmail.com wrote: Hey! Merry Christmas!! good vibes for all!

Re: [web2py] Re: Merry Christmas

2010-12-23 Thread Michele Comitini
Other web frameworks can compare with web2py, but no other has such a nice supporting community! Buon Natale, Merry Christmas! 2010/12/23 Pepe Araya pepea...@gmail.com: Hey! Merry Christmas!! good vibes for all!

Re: [web2py] Url variable's problem

2010-12-23 Thread Jonathan Lundell
It's not a list in your logic, but somewhere it's getting turned into a list. On Dec 23, 2010, at 11:37 AM, Arun K.Rajeevan the1.a...@gmail.com wrote: It's not a list. Complete logic is given in the first post, where this index is forming. Hidden field's value is set when select box changes.

Re: [web2py] Url variable's problem

2010-12-23 Thread Arun K.Rajeevan
Exactly, That's what confuses me.

[web2py] Re: App admin error

2010-12-23 Thread Arun K.Rajeevan
Nope, I tried again, by removing all files in database directory and started again. Problem is still there. If table is empty, it renders form. But, as soon as there's items in table, it'll cease to render anymore. BTW., I'm not using this table as a single form, so it's not effecting me now.

Re: [web2py] Re: Merry Christmas

2010-12-23 Thread Arun K.Rajeevan
Merry Christmas and Happy new Year for every single one in this community :-)

[web2py] Re: App admin error

2010-12-23 Thread pbreit
Can you look at the db.pictures.word field using a SQLite browser to see if there's any corruption or the wrong type?

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 6:19 PM, Jonathan Lundell jlund...@pobox.com wrote: Seriously: no. Seriously: yes. Why? Because it's YOUR work that is going to suffer if you don't. Why WOULDN'T you test something you are going to deploy? I've just tested dozen frameworks and even PHP before starting a

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 1:11 PM, Branko Vukelić wrote: On Thu, Dec 23, 2010 at 6:19 PM, Jonathan Lundell jlund...@pobox.com wrote: Seriously: no. Seriously: yes. Why? Because it's YOUR work that is going to suffer if you don't. Why WOULDN'T you test something you are going to deploy? I've

[web2py] Re: Unable to detect your browser

2010-12-23 Thread greenpoise
when I issue echo $BROWSER I get firefox. I have not used web2py in a long time, since I have ArchLinux because of this problem. Is there a way to change web2py as to where it does not launches any browser I have no plans of changing my system distribution. THanks dan On Dec 18, 9:57 

Re: [web2py] Url variable's problem

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 12:32 PM, Arun K.Rajeevan wrote: Exactly, That's what confuses me. I have a theory. Or at least a conjecture. Try looking request.env.query_string. My guess is that, in the case where you're seeing a list, indx is showing up twice in the query string from your form. When

[web2py] Re: Unable to detect your browser

2010-12-23 Thread greenpoise
Funny cuz when I try this: webbrowser.get() I get 'webbrowser' is not defined agh On Dec 23, 1:22 pm, greenpoise danel.sega...@gmail.com wrote: when I issue echo $BROWSER I get firefox. I have not used web2py in a long time, since I have ArchLinux because of this problem. Is there a way

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Thadeus Burgess
Seriously: no. I have way to many new features to add to the site and too little time to worry about testing each time I upgrade. -- Thadeus On Thu, Dec 23, 2010 at 3:16 PM, Jonathan Lundell jlund...@pobox.comwrote: On Dec 23, 2010, at 1:11 PM, Branko Vukelić wrote: On Thu, Dec 23,

Re: [web2py] Re: Unable to detect your browser

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 10:22 PM, greenpoise danel.sega...@gmail.com wrote: when I issue echo $BROWSER I get firefox. I have not used web2py in a long time, since I have ArchLinux because of this problem. Is there a way to change web2py as to where it does not launches any browser I have

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread pbreit
I think it's definitely a worthwhile goal to evolve the release schedule into stable and feature branches with bugs getting back-ported but suspect it will take some time to get there. Part of the value of a framework is being able to count on its stability. For now, we can upgrade more slowly

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 10:40 PM, pbreit pbreitenb...@gmail.com wrote: Part of the value of a framework is being able to count on its stability. For now, we can upgrade more slowly and pay attention to stability reports of new releases. Yes, yes. Sit around and wait. For what reports again?

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Jonathan Lundell
On Dec 23, 2010, at 2:17 PM, Branko Vukelić wrote: You keep babbling about your selfish needs, not even considering that there are actual people who have THEIR OWN needs and yet make time to listen to you, and implement shit in record time. And again, it has to be said, that saves you your

[web2py] Re: Unable to detect your browser

2010-12-23 Thread greenpoise
brilliant!! THANKS SO MUCH! On Dec 23, 1:33 pm, Branko Vukelić stu...@brankovukelic.com wrote: On Thu, Dec 23, 2010 at 10:22 PM, greenpoise danel.sega...@gmail.com wrote: when I issue echo $BROWSER I get firefox. I have not used web2py in a long time, since I have ArchLinux

Re: [web2py] Re: Unable to detect your browser

2010-12-23 Thread Branko Vukelić
2010/12/23 greenpoise danel.sega...@gmail.com: brilliant!! THANKS SO MUCH! You're welcome. It also helps if you build a virtual environment for developing your apps. Keeps things clean. First you get virtualenv package with: $ easy_install-2.7 virtualenv Then you just run this: $

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Thadeus Burgess
Kinda of joking, but also kinda serious. It cost time and money to have to test something just because a decision was made to upgrade the library (in this case, web2py). -- Thadeus 2010/12/23 Branko Vukelić stu...@brankovukelic.com On Thu, Dec 23, 2010 at 10:29 PM, Thadeus Burgess

[web2py] Re: Great summary of web2py

2010-12-23 Thread VP
On Dec 23, 3:44 am, Branko Vukelić stu...@brankovukelic.com wrote: Or am I missing something? In the summary, also no mention of Django or Flask. My comment is not just about that specific thread of discussion, but about a general PR strategy of web2py. My suggestion to Massimo still

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Thadeus Burgess
Good. Now this thread can go into the list of many archived threads about this topic. Nothing will happen and things will continue as they have been, which isn't so bad because nobody is forcing you to upgrade your web2py version each time a new release comes out. However, Branko, part of the

Re: [web2py] Re: Great summary of web2py

2010-12-23 Thread Branko Vukelić
2010/12/23 VP vtp2...@gmail.com: People who think that Django/Flask are superior to web2py, and/or web2py is deeply flawed, aren't changing their minds.  There's no point to debate, justify, etc. True. Off-topic I've recently tested Flask briefly. I didn't like it's way of routing. But then

[web2py] executing code from db

2010-12-23 Thread mattynoce
hi all. i know this doesn't sound like a superb idea, but i may have to do something like it. i have data coming from the db and being displayed to the user as instructions. do this, go there, etc. i'd like to have that data executed in the environment, so i could say do this,

[web2py] Re: Great summary of web2py

2010-12-23 Thread mdipierro
Flask is nice and I am not complaining about it. Yet, if I needed something small where web2py was too much overhead (and it can be I guess), I would go with bottle.py+dal.py. The bottle source code is beautiful and the routing mechanism seems similar to flask. Massimo On Dec 23, 5:12 pm, Branko

[web2py] Re: Great summary of web2py

2010-12-23 Thread JmiXIII
Just to give a pleased newbie feed-back : _I'm newbie to web2py (well a couple of month) _I've never studied informatics nor did I have an informatic job BUT I needed something to handle database easely + human interface + network for my job I tried a crack access = beurk = begin to learn python

[web2py] ajax polling with web2py

2010-12-23 Thread weheh
How would I do this? #view DIV(A('click me',_href='#',_id='parent',_onclick(ajax('clickback', ['parent'],':eval');))) #controller def clickback(): return 'jQuery(#parent).html(%s);' %\ SCRIPT(alert('hello world');) So that when I click on click me it calls the clickback, which inserts the

Re: [web2py] Re: Great summary of web2py

2010-12-23 Thread Michele Comitini
Maybe we should keep a comparison just on web2py.com. Pay attention to framework lists around and putting a sane description there. It is useless and even counterproductive starting flame wars in threaded discussions. It is more importante that googlers find web2py when they search a good

[web2py] Re: ajax polling with web2py

2010-12-23 Thread weheh
Continued ... oops, I hit send ... of course, I want the alert to be triggered after writing parent div.

Re: [web2py] ajax polling with web2py

2010-12-23 Thread Michele Comitini
I do not know what criteria you would use to understand if #parent is acceptable or not but you can pass as many other ids as you need: DIV(A('click me',_href='#',_id='parent',_onclick(ajax('clickback', ['parent', '2nd', '3rd', ... 'nth'],':eval');))) #controller def clickback(): for t in

[web2py] Re: The stability of web2py releases

2010-12-23 Thread weheh
Massimo, good news. Web2py is successfully being adopted by more and more developers who are using it for very serious purposes. It's going viral. Therefore, there need to be at most a few major releases a year and a bunch of incrementals in-between. I anticipated a challenging release with the

[web2py] Re: ajax polling with web2py

2010-12-23 Thread weheh
Sorry, I'm sure I wasn't clear. The routine I posted does not work. The parent div is properly updated, however the alert is not executed. I want the alert to be executed without further action by the user. On Dec 23, 7:02 pm, Michele Comitini michele.comit...@gmail.com wrote: I do not know

Re: [web2py] Re: Merry Christmas

2010-12-23 Thread Albert Abril
Happy Holidays, happy winter solstice, and happy new year. No doubt we have a great community! Kind Regards! -- Albert Abril, @desmondo

[web2py] Re: ajax polling with web2py

2010-12-23 Thread weheh
Let me try to state this more succinctly: How do I get a jQuery, which is created by a controller in response to an ajax call, to execute when loaded into it's target div?

[web2py] Re: The stability of web2py releases

2010-12-23 Thread mdipierro
I think the issue can be solved by labeling releases and posting older - more stable - releases. This is what I do now: - I always work on trunk - trunk is very unstable - Once in a while when trunk is stable I post a nightly build which is more like a release candidate. It does not change

[web2py] Re: Left Join with aliased table and the new DAL

2010-12-23 Thread mdipierro
I took a second look. The first problem is indeed fixed. The second problem is not a new dal issue. It is just that aliased tables in INNER JOINs never worked well. I will continue to look into it. This may take a while so could you open a ticket on google code? Thanks. On Dec 22, 2:52 am, HaM

[web2py] Re: Encountering problem with a computer field

2010-12-23 Thread mdipierro
For now I have a simple try except. I will see if that you suggest is possible. Massimo On Dec 23, 11:33 am, Magnitus fbunny2...@hotmail.com wrote: I've thought about the dependencies problem a little bit. Maybe add some kind of hook so that the user can define the dependencies of the

Re: [web2py] Re: ajax polling with web2py

2010-12-23 Thread Kuba Kucharski
hi, that is a very good question. April, f.e: http://www.mail-archive.com/web2py@googlegroups.com/msg34855.html -- Kuba

Re: [web2py] Re: Merry Christmas

2010-12-23 Thread Luis Díaz
+1 2010/12/24 Albert Abril albert.ab...@gmail.com Happy Holidays, happy winter solstice, and happy new year. No doubt we have a great community! Kind Regards! -- Albert Abril, @desmondo -- Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo http://web2pyfacil.blogspot.com/

[web2py] Re: GAE shows problem.

2010-12-23 Thread mdipierro
The problem is that the query is missing. Do you know if this worked in 1.89.x? On Dec 23, 1:41 pm, Arun K.Rajeevan the1.a...@gmail.com wrote: see GAE error message. (it runs perfectly fine, if web2py run stand alone) And was running ok, till previos hour. What I can track is

[web2py] job

2010-12-23 Thread mdipierro
I found this: http://www.i-freelancer.org/php/python-developerqa-odesk/

[web2py] Re: GAE shows problem.

2010-12-23 Thread mdipierro
for now do this instead: db(db.languages).select(cache=(cache.ram,3600)).sort(lambda a: a.full)]* mind that unless you redefined cache.ram as GAE memcache the caching will not work. On Dec 23, 1:41 pm, Arun K.Rajeevan the1.a...@gmail.com wrote: see GAE error message. (it runs perfectly fine,

  1   2   >