Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Jason Brower
Actually, if you just unplug your internet before you start. It will just fly because it gets the error and just uses the local one. But that's not a solution for everyone. My network cable is a local network online and having it plugged in makes the browser look for the page for about a minute.

[web2py] Re: web2py admin 2.0

2010-11-20 Thread mdipierro
admin already support mercurial. If you have it installed it will use and you can commit and check revision history. On Nov 20, 11:25 pm, luismurciano wrote: > I was thinking about changing the the admin app too not only its front > end but adding some simple features. > > What about a simple CVS

[web2py] Re: web2py admin 2.0

2010-11-20 Thread luismurciano
I was thinking about changing the the admin app too not only its front end but adding some simple features. What about a simple CVS? it would be a nice to include it just add a list in the admin app a drop down menu with version in the app name, so its only showed when needed.

[web2py] Re: response.js not working?

2010-11-20 Thread mdipierro
Works only when using LOAD def index(): return dict(a=LOAD('default','test.load',ajax=True)) def test(): response.js = 'alert("test")' return dict(message='test') On Nov 20, 9:54 pm, Carlos wrote: > Hi, > > I'm not sure if it's the long hours I've been working, but I can't > figur

[web2py] ajax call with special characters in response

2010-11-20 Thread Carlos
Hi, I'm making an ajax call from a web2py app to another web2py controller. web2py controller: def serverfunction(): response.headers['web2py-component-command'] = 'jsfunction("México")' return '' web2py view (making the ajax call): web2py_component("{{=URL('serverfunct

[web2py] response.js not working?

2010-11-20 Thread Carlos
Hi, I'm not sure if it's the long hours I've been working, but I can't figure out how to make a simple javascript alert work in a web2py response. def test(): response.js = 'alert("test")' return dict(message='test') What am I doing wrong above?. I have no test view, so the default one

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Phyo Arkar
Massimo , i think web2py local default app should not load code from non-local. . In some place where theres no internet everytime (many third world countries) , it will cause problems .If a new comer tried while internet is down , that will caused bad impression for web2py On 11/21/10, Luis Díaz

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Phyo Arkar
>"Welcome loads Jquery from cdn.google" Yea that explain for my case , i have slow internet connection (well the whole contry here is slow internet) . Thats why it get slow after updated.Carlos loading javascript outside of the localhost make it bad response time for app. and it is not ajax (not

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
so i am confused :D Google taskqueues wont work without running on Google GAE Cloud right? On 11/21/10, mdipierro wrote: > No. > > On Nov 20, 8:52 pm, Phyo Arkar wrote: >> I was never into GAE , but if GAE SDK works locally without any need >> from Google GAE ? >> >> Can we build cloud using it

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Carlos
This issue is not related to any extra/ajax loading (e.g. in admin or so), I've tried it with everything: admin, appadmin, welcome, my app, etc., same long delay. The load takes about one full minute ! Strangely it only occurs *intermitently* in IE and Firefox, but Chrome (and maybe Opera) work o

[web2py] Re: Selecting subsets of objects in a controller.

2010-11-20 Thread mdipierro
oops typo def edit(): org_id, eventtype_id=request.args(0),request.args(1) eventtype=db.eventtype(eventtype_id,org=org_id) or redirect(URL(...)) On Nov 20, 8:30 pm, mdipierro wrote: > Depends on the model. I will assume > > db.define_table('org',Field('name')) > db.define_table('eventtyp

[web2py] Re: Python Message Queue

2010-11-20 Thread mdipierro
No. On Nov 20, 8:52 pm, Phyo Arkar wrote: > I was never into GAE , but if GAE SDK works locally without any need > from Google GAE ? > > Can we build cloud using it? > > On 11/21/10, mdipierro wrote: > > >http://code.google.com/appengine/docs/python/taskqueue/ > > > On Nov 20, 7:29 pm, Phyo Arka

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Luis Díaz
I had a similar problem and was produced by my work poxy if you are behind a proxy, I recommend you disable it in your browser while you do local tests. -- google translator -- Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo http://web2pyfacil.blogspot.com/ Facul

[web2py] Re: Selecting subsets of objects in a controller.

2010-11-20 Thread Joe J
Thank you very much for your advice. Yes, my models do relate to each other like that. This solution seems to be what I was looking for. Thanks again, Joe On Nov 20, 8:30 pm, mdipierro wrote: > Depends on the model. I will assume > > db.define_table('org',Field('name')) > db.define_table('even

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
I was never into GAE , but if GAE SDK works locally without any need from Google GAE ? Can we build cloud using it? On 11/21/10, mdipierro wrote: > http://code.google.com/appengine/docs/python/taskqueue/ > > On Nov 20, 7:29 pm, Phyo Arkar wrote: >> 2) could be a compatibility layer on top of go

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread mdipierro
yes. the twitten part is loaded via ajax. Should not cause the delay. On Nov 20, 8:10 pm, Phyo Arkar wrote: > I got very long loading time on examples ., it just waiting for (about > 10-15 seconds) and do nothing.http://127.0.0.1:8000/examples > > I suspect Twitter loads but they supposed to be l

[web2py] Re: Python Message Queue

2010-11-20 Thread mdipierro
http://code.google.com/appengine/docs/python/taskqueue/ On Nov 20, 7:29 pm, Phyo Arkar wrote: > 2) could be a compatibility layer on top of google's task queue. > > google's task queue? on GAE? > > for many orginizations and companys , GAE or any other public clouds are not > an option. They want

[web2py] Re: Selecting subsets of objects in a controller.

2010-11-20 Thread mdipierro
Depends on the model. I will assume db.define_table('org',Field('name')) db.define_table('eventtype,Field('org',db.org),Field('name')) In this case def edit(): org_id, eventtype_id=request.args(0),request.args(1) eventtype==db.eventtype(eventtype_id,org=org_id) or redirect(URL(...)) I d

[web2py] Re: Wizard Code

2010-11-20 Thread mdipierro
you are correct. will fix it. On Nov 20, 5:57 pm, villas wrote: > From wizard generated code, but a style promoted elsewhere too... > >     f,v = request.args(0), request.args(1) >     query = f and db.table[f]==v or db.table > > If I use a wrong url e.g. 'function/my/error',  this code fails. >

Re: [web2py] very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Bruno Rocha
examples loads google groups and google code RSS, Welcome loads Jquery from cdn.google, admin loads twitter feed and update/upgrade information. can be that. 2010/11/21 Phyo Arkar > I got very long loading time on examples ., it just waiting for (about > 10-15 seconds) and do nothing. > http://1

Re: [web2py] Re: web2py 1.89.2 is OUT

2010-11-20 Thread Phyo Arkar
coz it is using MSVCR71.dll currently. Better do clean upgrade after shutting down web2py On 11/21/10, JoeCodeswell wrote: > I tried [twice] to upgrade using the "upgrade now" button" in the > "site" page of the administrative interface: > > from: Version 1.81.5 (2010-07-22 23:56:21) > t

Re: [web2py] very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Phyo Arkar
I got very long loading time on examples ., it just waiting for (about 10-15 seconds) and do nothing. http://127.0.0.1:8000/examples I suspect Twitter loads but they supposed to be load after document is ready, right? On 11/21/10, Bruno Rocha wrote: > Windows firewall, browser security settings

Re: [web2py] very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Gary Herron
On 11/20/2010 05:50 PM, Carlos wrote: Hi, Why do IE (v. 8) and Firefox (v. 3.6 with Firebug) browsers quite often take a LOOONG time to load web2py urls in the following format?: http://127.0.0.1:8000/ I just see in the following in the status bar: Waiting for http://127.0.0.1:8000/ .

Re: [web2py] very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Bruno Rocha
Windows firewall, browser security settings or some antivirus system? 2010/11/20 Carlos > Hi, > > Why do IE (v. 8) and Firefox (v. 3.6 with Firebug) browsers quite > often take a LOOONG time to load web2py urls in the following format?: > > http://127.0.0.1:8000/ > > I just see in the followin

[web2py] very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Carlos
Hi, Why do IE (v. 8) and Firefox (v. 3.6 with Firebug) browsers quite often take a LOOONG time to load web2py urls in the following format?: http://127.0.0.1:8000/ I just see in the following in the status bar: Waiting for http://127.0.0.1:8000/ ... Even after trying to refresh/reload ma

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
Thats Very cool! +1 On 11/21/10, blackthorne wrote: > Hey Massimo, i think I can help on this and btw I think it is the way > to go if we want to bring scalability and fault-tolerance to another > level. > > I would suggest the very same architecture used in the Merb framework. > They did an aweso

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
2) could be a compatibility layer on top of google's task queue. google's task queue? on GAE? for many orginizations and companys , GAE or any other public clouds are not an option. They want their sensitive data to be private, and paranoid to go it online. The firm i am working on is building th

[web2py] Re: Python Message Queue

2010-11-20 Thread blackthorne
Hey Massimo, i think I can help on this and btw I think it is the way to go if we want to bring scalability and fault-tolerance to another level. I would suggest the very same architecture used in the Merb framework. They did an awesome work with nanites (a fabric of ruby daemons), bringing real c

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
For my problem i have to use multiprocessing + Queue is: I am developing a file indexer for a Digital Forensic Firm which extract huge archive of files , pst (ms Outlook archives), Read them . parse them , extract Mime and Indexable text out of many different type of documents , as much as possibl

Re: [web2py] Re: Questions about sets

2010-11-20 Thread Lorin Rivers
I figured out what i was doing wrong. I should have been updating the datetime field with a string. -- Lorin Rivers Mosasaur: Killer Technical Marketing 512/203.3198 (m)

[web2py] Selecting subsets of objects in a controller.

2010-11-20 Thread Joe J
Hi All, I have a one-to-many relationship between a table called "org" and a table called "eventtype". (one org can have many eventtypes). I'm trying to construct a controller function that can edit a eventtype belonging to a specific org. The URL might look something like: /app_name/eventtype

[web2py] Re: Python Message Queue

2010-11-20 Thread blackthorne
I've used extensively ActiveMQ, RabbitMQ and memcache + starling for professional reasons, what is it that you really want to know? what is the target? On Nov 19, 2:09 am, Pystar wrote: > I would like to know if any one here has used any message queue? and > which one comes recommended?

[web2py] Re: web2py admin 2.0

2010-11-20 Thread blackthorne
hey, also consider: - mobile view - good for keep updated on ticket reporting and so on... - integrated SQL designer - update option for each app - routes web interface - logging interface Thank you Best regards On Nov 20, 5:12 pm, Branko Vukelic wrote: > This topic is for brainstorming future

[web2py] Wizard Code

2010-11-20 Thread villas
>From wizard generated code, but a style promoted elsewhere too... f,v = request.args(0), request.args(1) query = f and db.table[f]==v or db.table If I use a wrong url e.g. 'function/my/error', this code fails. I expected that if 'f and db.table[f]==v' fails then 'db.table' is used in

Re: [web2py] Re: web2py admin 2.0

2010-11-20 Thread António Ramos
Those images of the possible 2.0 reminds me of the jqgrid example http://trirand.com/blog/jqgrid/jqgrid.html Treeview for models ,views controllers etc in the left side, and in the right side, the editarea with tabbed access to the files we open in the left. Don´t forget the shell in the bottom r

[web2py] Re: web2py 1.89.2 is OUT

2010-11-20 Thread JoeCodeswell
I tried [twice] to upgrade using the "upgrade now" button" in the "site" page of the administrative interface: from: Version 1.81.5 (2010-07-22 23:56:21) to: Version 1.89.4 (2010-11-19 02:50:05) on: Windows 2000 result: unable to upgrade because "[Errno 13] Permission d

Re: [web2py] Re: web2py admin 2.0

2010-11-20 Thread António Ramos
All of that in the browser is outstanding I cant wait to use it. Just one detail that would be also important. Is it possible to add bellow the editarea a frame with the python shell? Also as a lotus notes programmer as i said previously where we have a workspace also with icons, we change the i

[web2py] Re: Python Message Queue

2010-11-20 Thread mdipierro
If we here to integrate a queue functionality in web2py what features would you consider most valuable? I can three different applications: 1) a message queue (one app sends a message, another one receives it) 2) a task queue (an app can submit a task to be executed later): task is executed by a r

[web2py] Re: web2py admin 2.0

2010-11-20 Thread mdipierro
Notice that admin is an app and it can be replaced. I am not sure I want to replace admin with something too ajaxy (scares new users and it is less portable) but it would be nice to have options. Massimo On Nov 20, 5:26 pm, Anthony wrote: > This is awesome! Now, about those red X's... > > On No

[web2py] Re: web2py admin 2.0

2010-11-20 Thread Anthony
This is awesome! Now, about those red X's... On Nov 20, 6:04 pm, Branko Vukelic wrote: > Here are some wireframes: > > Workbench:http://www.flickr.com/photos/foxbunny/5192808829/sizes/o/ > > Design window:http://www.flickr.com/photos/foxbunny/5193406424/sizes/o/ > > > > > > On Sat, Nov 20, 2010 a

[web2py] Re: Facebox problems

2010-11-20 Thread ma...@rockiger.com
I use facebox, too. It works very well. Is the form in an iframe? On 20 Nov., 10:27, Bernardo wrote: > Hi all, > > My question is, has anyone been able to place a working form inside a > facebox box? > > Facebox is a jQuery plugin (http://chriswanstrath.com/facebox/). Well, > the form is shown p

[web2py] Re: web2py admin 2.0

2010-11-20 Thread Branko Vukelic
Here are some wireframes: Workbench: http://www.flickr.com/photos/foxbunny/5192808829/sizes/o/ Design window: http://www.flickr.com/photos/foxbunny/5193406424/sizes/o/ On Sat, Nov 20, 2010 at 11:16 PM, Branko Vukelic wrote: > On Sat, Nov 20, 2010 at 11:12 PM, Branko Vukelic wrote: >> 1. Sites

Re: [web2py] Re: DAL to Qurey Multiple defined IDs?

2010-11-20 Thread Phyo Arkar
Yeah a day of not sleeping well make my eyes skip it lol! On Sat, Nov 20, 2010 at 11:34 PM, Lorin Rivers wrote: > It is in the book: > > > On Nov 19, 2010, at 20:00 , Bruno Rocha wrote: > > > Not mentioned in the book that you can get

Re: [web2py] Re: better keywords comics

2010-11-20 Thread Phyo Arkar
+1 Nice! On Sun, Nov 21, 2010 at 4:44 AM, ma...@rockiger.com wrote: > Cool stuff. > > On 20 Nov., 04:42, mdipierro wrote: > > http://web2py.com/examples/static/web2py_keywords_comics.png >

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
Here is what i found from : http://celeryq.org/docs/configuration.html By default it dont need any MQ Brokers , works via database backend which is supported by SQLAlchemy. ALso can use memcache . - database (default) Use a relational database supported by SQLAlchemy

[web2py] Re: web2py admin 2.0

2010-11-20 Thread Branko Vukelic
On Sat, Nov 20, 2010 at 11:12 PM, Branko Vukelic wrote: > 1. Sites section 1.5 Workbench wallpaper A cosmetic thing, really, but would make it more desktop-like. :) -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my po

[web2py] Re: better keywords comics

2010-11-20 Thread ma...@rockiger.com
Cool stuff. On 20 Nov., 04:42, mdipierro wrote: > http://web2py.com/examples/static/web2py_keywords_comics.png

Re: [web2py] graph node python

2010-11-20 Thread Michele Comitini
http://www.rdflib.net/ pure python and very strong for graphs (and fast enough). 2010/11/20 António Ramos : > Only for mac :( > > Go for > http://www.graphviz.org/Gallery.php > > 2010/11/20 Luis Díaz >> >> +1 >> http://nodebox.net/code/index.php/Boost_Graph >> >> -- >> Díaz Luis >> TSU Analisis

[web2py] web2py admin 2.0

2010-11-20 Thread Branko Vukelic
This topic is for brainstorming future development of the admin UI. Please do not report bugs with the current one in this topic, since its purpose is not fixing the current admin. Here are a few ideas. 1. Sites section 1.1 Workbench The workbench would be the space below the current top panel.

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Michele Comitini
RabbitMQ seems Erlang a good sign, but add too many dependecies. Redis is C If it would be possible to replace sqlalchemy with DAL easily then we could integrate it, who is going to investigate? 2010/11/20 Phyo Arkar : > One thing i am not clear about celery > > It needs a MQ Backend to install

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
One thing i am not clear about celery It needs a MQ Backend to installed and configured right? (RabbitMQ,Redis) etc ? They are whole new thing for me and they are Java/C , so much dependencies. Please Celerify lol :D On Sun, Nov 21, 2010 at 4:17 AM, Michele Comitini < michele.comit...@gmail.co

Re: [web2py] graph node python

2010-11-20 Thread António Ramos
Only for mac :( Go for http://www.graphviz.org/Gallery.php 2010/11/20 Luis Díaz > +1 > > http://nodebox.net/code/index.php/Boost_Graph > > > -- > Díaz Luis > TSU Analisis de Sistemas > Universidad de Carabobo > > http://web2pyfacil.blogspot.com/ > Facultad de > Odontología

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Michele Comitini
+1 2010/11/20 Phyo Arkar : > Wow > > celery is freaking awesome! > > http://pypi.python.org/pypi/celery/2.1.3#example > > I think we need it in web2py!. all other web frameworks have it now!. > > On 11/19/10, Niphlod wrote: >> the only thing on multiprocessing's queue that I don't like (it's no

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Branko Vukelic
2010/11/20 António Ramos : > hurts the first time. After that everybody will say: > That is nice, a lot better than before. ... or they might say "I couldn't figure this out the very first time I've tried. Could you please completely change it to fit my way of thinking?" as it happens sometimes. :

[web2py] graph node python

2010-11-20 Thread Luis Díaz
+1 http://nodebox.net/code/index.php/Boost_Graph -- Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo http://web2pyfacil.blogspot.com/ Facultad de Odontología

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread António Ramos
i got for that one. A much cleaner workspace is better for future evolution . Also the discovery of features is a natural process of web apps and only hurts the first time. After that everybody will say: That is nice, a lot better than before. Its like a loop where you use ony one variable instead

[web2py] Re: better keywords comics

2010-11-20 Thread Christopher Steel
I like C. On Nov 19, 10:42 pm, mdipierro wrote: > http://web2py.com/examples/static/web2py_keywords_comics.png

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
Wow celery is freaking awesome! http://pypi.python.org/pypi/celery/2.1.3#example I think we need it in web2py!. all other web frameworks have it now!. On 11/19/10, Niphlod wrote: > the only thing on multiprocessing's queue that I don't like (it's not > its fault, but psycopg's one) is that I h

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Phyo Arkar
Yes massimo Here is my current implementation , please note i use it outside of web2py and call it via subprocess . And it is quite crude and dirty , need to modify for using outside of my script. What it does : it accepts a list of files (file_list) and the function object (toprocess) , and acc

[web2py] Re: Questions about sets

2010-11-20 Thread mdipierro
no no no. db(query).update(field=expression) expression is not a python expression but an DAL expression that gets translated into SQL. This is wrong db4.data_table.FreezeTime=datetime.strptime(db4.data_table.ReqTime.split(".") [0], "%Y-%m-%dT%H:%M:%S") because it assumes it gets evaluated b

Re: [web2py] better keywords comics

2010-11-20 Thread Michele Comitini
+1 Terrific! I contains such a huge number of concepts in just one page! ;-) If I were new to web2py it would scare me! Now it just caused me a headache ;-) 2010/11/20 mdipierro : > http://web2py.com/examples/static/web2py_keywords_comics.png

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Branko Vukelic
On Sat, Nov 20, 2010 at 8:29 PM, Anthony wrote: >> What about a right click menu over the files with >> delete,install,uninstall,etc as a sub menu. The page would look a lot more >> simple. > > We're probably mostly editing files, so it's nice to have a single > click to start editing (i.e., like

Re: [web2py] Re: Python Message Queue

2010-11-20 Thread Michele Comitini
2010/11/19 Niphlod : > the only thing on multiprocessing's queue that I don't like (it's not > its fault, but psycopg's one) is that I have to create multiple > connections (one for every process) to the database. Not a psycopg fault, it is the way PostgreSQL work, and it is very well thought. htt

Re: [web2py] ERP projects

2010-11-20 Thread Michele Comitini
Mariano, +1 This project can be very important to make web2py look even more appealing to the business world. I would like to help. mic 2010/11/19 Mariano Reingart : > Yes, I agree, development will be done in english, look at this > "facturalibre" branch: > > http://code.google.com/p/gestionl

[web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Anthony
On Nov 20, 2:34 pm, António Ramos wrote: > no, what i meant was that the edit should be the url itself or the button, > other options should be in the right click because they are less important That makes sense, though we'd want to make sure it's very clear that there are some right-click option

Re: [web2py] Re: Questions about sets

2010-11-20 Thread Lorin Rivers
What do you mean? The field ReqTime is defined as a string: >>> db4.data_table[78978] at 0x101cc9a28>, 'Vi': 34.88671875, 'StringID': 'S0003', 'Vstring': 24.0, 'Vo': 36.41015625, 'Ii': 1.61328125, 'Io': 1.4921875, 'RollupId': None, 'Po': 54.330780029296903, 'ResTime': '2010-11-08T22:09:00.

[web2py] Re: edit the book, get a free book

2010-11-20 Thread Anthony
On Nov 20, 2:23 pm, GoldenTiger wrote: > > Note, there is a comment feature in the online book -- but you have to > > Yes, but if you read User Agreement at login : > "Please read agreement below. By logging you accept the agreement. > > THIS IS NOT A PLACE TO ASK QUESTIONS, SUBMIT BUGS OR COMPLAI

Re: [web2py] Re: Questions about sets

2010-11-20 Thread CesarBustios
Did you try converting the Field to string? str(db4.data_table.ReqTime).split(".")[0] Lorin Rivers ha escrito: > What about using a function? I need run db.table.field through split (the > time part has too many decimal places) and then convert from string to time > > Here's what I tried: > db4(

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread António Ramos
no, what i meant was that the edit should be the url itself or the button, other options should be in the right click because they are less important Best regards António 2010/11/20 Anthony > On Nov 20, 1:44 pm, António Ramos wrote: > > I hate having to scroll down the page. The models, views

[web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Anthony
On Nov 20, 1:44 pm, António Ramos wrote: > I hate having to scroll down the page. The models, views and controllers > should be, maybe disposed horizontally or when you open for ex the tab > "controllers" the others close so you dont have to scroll down and > everything is in the same page. Like t

[web2py] Re: edit the book, get a free book

2010-11-20 Thread GoldenTiger
> Note, there is a comment feature in the online book -- but you have to Yes, but if you read User Agreement at login : "Please read agreement below. By logging you accept the agreement. THIS IS NOT A PLACE TO ASK QUESTIONS, SUBMIT BUGS OR COMPLAINTS. If you have a quesiton ask on the Google Grou

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread António Ramos
Hello, i suggest to keep the admin interface quest open because for someone entering web2py for the first time its the most important thing. Maybe a contest for the best admin interface? and a price for the winner too. The framework is fantastic, i discovered python and i love it. So i went looking

Re: [web2py] Re: Questions about sets

2010-11-20 Thread Lorin Rivers
What about using a function? I need run db.table.field through split (the time part has too many decimal places) and then convert from string to time Here's what I tried: db4((db4.data_table.ReqTime >="2010-11-08T22:09:00") & (db4.data_table.ReqTime < "2010-11-08T22:09:10") & (db4.data_table.Mac

[web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread mdipierro
I have objected to that in the past since the edit functionality is the most important and visible to new users. On Nov 20, 12:15 pm, annet wrote: > Hi Branko, > > Indeed very nice. What about replacing the edit button with a similar > icon? One with a pencil perhaps?? That would give the three o

[web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread annet
Hi Branko, Indeed very nice. What about replacing the edit button with a similar icon? One with a pencil perhaps?? That would give the three options a more consistent look and feel. Regards, Annet

[web2py] Re: edit the book, get a free book

2010-11-20 Thread Anthony
On Nov 20, 12:07 pm, Lorin Rivers wrote: > You know, a comment feature would be really awesome for the online version of > the book, like the PHP online docs have. Note, there is a comment feature in the online book -- but you have to login for it to show up. The comment box is also way down at

[web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Anthony
+1. Very nice. On Nov 20, 12:09 pm, Branko Vukelic wrote: > On Sat, Nov 20, 2010 at 9:31 AM, annet wrote: > > Personally, I like the icons webfaction is using, consistent styling > > and a clear meaning. > > I've taken a look at webfaction's screencast. This set of icons might > be something alo

[web2py] Re: Questions about sets

2010-11-20 Thread mdipierro
something like this? db(query).update(field1=db.table.field2+db.table.field3) Massimo On Nov 20, 11:27 am, Lorin Rivers wrote: > Are delete, & update the only the only database modification methods in set? > > Can I do something like compute a value from information in a record in a set > and

[web2py] Questions about sets

2010-11-20 Thread Lorin Rivers
Are delete, & update the only the only database modification methods in set? Can I do something like compute a value from information in a record in a set and update a field in that set with that info? For example, my records include a string field which stores a date string and I want to updat

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Luis Díaz
+1 -- Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo http://web2pyfacil.blogspot.com/ Facultad de Odontología

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Branko Vukelic
And here's the tool-tip for the test icon (delete icon has a similar tooltip). On Sat, Nov 20, 2010 at 6:09 PM, Branko Vukelic wrote: > On Sat, Nov 20, 2010 at 9:31 AM, annet wrote: >> Personally, I like the icons webfaction is using, consistent styling >> and a clear meaning. > > I've taken a l

Re: [web2py] edit the book, get a free book

2010-11-20 Thread Lorin Rivers
You know, a comment feature would be really awesome for the online version of the book, like the PHP online docs have. One thing (as I mentioned earlier) that I think would be super helpful would be more examples of SQL translated to DAL. I know SQL pretty well and often test what I want to ach

Re: [web2py] Re: DAL to Qurey Multiple defined IDs?

2010-11-20 Thread Lorin Rivers
It is in the book: On Nov 19, 2010, at 20:00 , Bruno Rocha wrote: > Not mentioned in the book that you can get the NOT IN SQL expression > > my_list = [1,2,3,4] > > NOT IN LIST: db(~(db.product.id.belongs(my_list))).select() > > IN

[web2py] Model scope

2010-11-20 Thread Lorin Rivers
For some reason, a model in default/db.py wasn't loading, but after I copied over to another file in the models directory, it worked fine. If I have a reports controller, a reports view, and a reports model, /reports/ is the only place that model will be available, right? A model in defaults SH

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Branko Vukelic
On Sat, Nov 20, 2010 at 5:03 PM, Joel Clay wrote: > There are more than two solutions in this thread, I challenge you to read > through and prove me wrong. I don't even need to look around. You had a trash can solution. And another trash can solution. And a few more trash can solutions. It's like

[web2py] Re: cron

2010-11-20 Thread leone
Thanks. I discovered an error in script, as probable cause of that warning. I will follow your suggests! leone On Nov 20, 5:12 pm, Jonathan Lundell wrote: > On Nov 20, 2010, at 6:43 AM, mdipierro wrote: > > > > > Not 100% sure but I think this means that a cron task did not complete > > or exited

[web2py] Re: Catch IntegrityError

2010-11-20 Thread CesarBustios
Mmmm i don't have the application right now but i'll let you know as soon as possible. I asume that its because of the IS_NOT_IN_DB() requirement, i let the application rise the error on purpose so i can catch it but i dont know how to do that mdipierro ha escrito: > Can you show us the traceback?

Re: [web2py] Re: cron

2010-11-20 Thread Jonathan Lundell
On Nov 20, 2010, at 6:43 AM, mdipierro wrote: > > Not 100% sure but I think this means that a cron task did not complete > or exited abnormally. Right: still running after 60+ seconds. It's a little tricky to distinguish (in real time, anyway) between abnormal exits and long-running cron jobs,

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Joel Clay
There are more than two solutions in this thread, I challenge you to read through and prove me wrong. Perhaps that was wrong of me to conclude that a majority agrees that the red X is distracting. Perhaps we should hold a poll. Being the designer, you have a bias towards your work and that is both

[web2py] Re: display IS_IN_SET, from a select in a form

2010-11-20 Thread puercoespin
Thanks Max, but, with that line raise an error: db.comentario_vendedor.vendedor_id.requires=IS_IN_DB(db(db.auth_user.profesional=='True'),auth_user.first_name) NameError: name 'auth_user' is not defined fixed with: db.comentario_vendedor.vendedor_id.requires=IS_IN_DB(db(db.auth_user.profes­ io

[web2py] Re: Admin comments

2010-11-20 Thread mdipierro
Is this for one particular layout? On Nov 20, 8:53 am, Kenneth Lundström wrote: >  > because edit is more important. Is it really confusing? > > Me first impression when I looked at admin was that Edit is active, but > I pressed Edit anyhow when I couldn't find any other way to edit it and > voil

Re: [web2py] Re: Admin comments

2010-11-20 Thread Kenneth Lundström
> because edit is more important. Is it really confusing? Me first impression when I looked at admin was that Edit is active, but I pressed Edit anyhow when I couldn't find any other way to edit it and voilá I found the place. Not an big deal. Any comments about the layout not showing? Kenn

Re: [web2py] Re: New Admin Design: Suggested Improvement

2010-11-20 Thread Branko Vukelic
On Sat, Nov 20, 2010 at 1:58 PM, Joel Clay wrote: > What? Really. I've seen quite a number of good solutions run through this > topic. Obviously most of the community agrees that the X icon falls in the Interesting. This thread _is_ long, but I'm sure if you look at it carefully, you won't see "m

[web2py] Re: cron

2010-11-20 Thread mdipierro
Not 100% sure but I think this means that a cron task did not complete or exited abnormally. On Nov 20, 6:04 am, leone wrote: > Hi, > what means WARNING:web2py.cron:WEB2PY CRON: Stale cron.master > detected? > My crontab: > #crontab > 1 * * * * root *plugin_CRONTAB/test > > (ubuntu os, last rel w

[web2py] Re: bug? SQLTABLE with null values for reference fields

2010-11-20 Thread mdipierro
They are assigned by default IF the referenced table has a format='% (name)s' attribute else web2py does not know how to represent items in the dropdown. On Nov 20, 8:33 am, "richard.ree" wrote: > I see.  I guess I just assumed that a validator like > IS_NULL_OR(IS_IN_DB(db, db.other.id)) would b

[web2py] Re: bug? SQLTABLE with null values for reference fields

2010-11-20 Thread richard.ree
I see. I guess I just assumed that a validator like IS_NULL_OR(IS_IN_DB(db, db.other.id)) would be assigned by default to reference fields, since null values are allowed by default in other types of fields. Thanks, -Rick

[web2py] Re: display IS_IN_SET, from a select in a form

2010-11-20 Thread mdipierro
This line db.comentario_vendedor.vendedor_id.requires=IS_IN_SET(db(db.auth_user.profesional=='True').select(db.auth_user.first_name)) should be db.comentario_vendedor.vendedor_id.requires=IS_IN_DB(db(db.auth_user.profesional=='True'),auth_user.first_name) On Nov 20, 6:43 am, puercoespin wro

[web2py] Re: Admin comments

2010-11-20 Thread mdipierro
because edit is more important. Is it really confusing? Fixed the typo, thanks. On Nov 20, 2:41 am, Kenneth Lundström wrote: > Admin first page, why is the edit button black when all the others are > grey? It looks like the edit button is allready pressed. > > On page /admin/wizard/step5/0: > Use

[web2py] Re: Error when using wizard to create a new application

2010-11-20 Thread mdipierro
looks like you have an incomplete upgrade. admin was upgraded but the libraries from gluon/* no On Nov 20, 2:38 am, Kenneth Lundström wrote: > I tried to create a new application with the wizard and when I pressed > generate I got this error. When looking in the applictions folder all > subfolder

[web2py] Re: jquery file addition in web2py_ajax.html trunk has a problem

2010-11-20 Thread mdipierro
uploading fix to trunk On Nov 20, 12:17 am, ron_m wrote: > I use jQueryUI as well which is included in the view pages I create > that need it. I found that using the current in trunk way to include > jquery.js in web2py_ajax.html doesn't work: > > response.files.append(URL('static','js/jquery.js'

  1   2   >