Re: [web2py] tips from a seasoned practitioner

2013-03-11 Thread Anthony
Note, response.toolbar() already includes both of these things in the "db tables" and "db stats" buttons. "db tables" even differentiates between lazy tables and tables that have been fully defined so you can see which tables are getting defined for a given request. Anthony On Monday, March 11

[web2py] Re: Problem with smartgrid no GUI Bread Crums or missing buttons for links

2013-03-11 Thread Dan Kozlowski
Same problem with Windows IE8, Linux Chrome and Linux Firefox. Below is what I have in my CSS web2py_paginator { padding: 5px; color: #333; text-align:right; background-color: #f2f2f2; padding: 5px; border-bottom: 1px solid #DDD; -- --- You received this message because you a

[web2py] Re: Status of workflow functionality

2013-03-11 Thread Cliff Kachinske
Workflow is not a winning proposition. If you're working with a small business they can't afford the t time it takes to do a decent job. If it's a large company they can afford a big time solution with all the bells and whistles. It's too ready to get tied up in the rocket science that the fu

[web2py] Re: Problem with smartgrid no GUI Bread Crums or missing buttons for links

2013-03-11 Thread Dan Kozlowski
On Monday, March 4, 2013 9:06:17 PM UTC-6, Dan Kozlowski wrote: > > Does anyone have this same problem with a smart grid ? Running on Linux. > Thanks > > 1.) the word grid is show to the right of the grid > 2.) No boxes for Bread Crums > 3.) No buttons for external links just text to the link >

[web2py] Re: select all in grid and smargrid?

2013-03-11 Thread 黄祥
done on : http://code.google.com/p/web2py/issues/detail?id=1383 thank you so much for your quick response massimo -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an em

[web2py] Re: select all in grid and smargrid?

2013-03-11 Thread Massimo Di Pierro
Good point. Please open a ticket so I do not forget. On Monday, 11 March 2013 20:16:36 UTC-5, 黄祥 wrote: > > just a suggestion, why not add feature this as a default grid / smartgrid? > thank you > > On Tuesday, March 12, 2013 8:14:09 AM UTC+7, Massimo Di Pierro wrote: >> >> select >> all >> >> On

[web2py] Re: 'Rows' object has no attribute '_db'

2013-03-11 Thread Jamie Jernigan
Great! Alan, Thank you. I'll give it a shot and paste my results later tonight. Cheers, JJ On Saturday, March 9, 2013 6:13:24 PM UTC-5, Jamie Jernigan wrote: > > Hi , > > I'm new to Web2py and I've been struggling with this the last couple of > days. I'm getting > 'Rows' object has no attribut

Re: [web2py] Re: grid/smartgrid searching foreign key tables

2013-03-11 Thread Jim Steil
I agree with Cliff. It takes longer to code the search/filter than it does the controller with .grid and .smartgrid. But, I think it is worth the time so I do it. -Jim On Mon, Mar 11, 2013 at 8:18 PM, Cliff Kachinske wrote: > Just so I'm clear, full text is when you just type the search ter

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread David Lypka
OK will test it later tonight. Thanks. On Mon, Mar 11, 2013 at 6:01 PM, Niphlod wrote: > please test it (trunk version). I'm sending a patch to Massimo to include > it in trunk. > > > On Monday, March 11, 2013 11:35:23 PM UTC+1, dlypka wrote: > >> Wow. That will be nice. >> Thanks. >> >> On Mon,

[web2py] Re: I usually only post when something goes wrong

2013-03-11 Thread Massimo Di Pierro
Thanks for letting us know. I was not sure that worked. ;-) On Monday, 11 March 2013 19:40:32 UTC-5, Lewis wrote: > > Except this time, nothing did. > > Upgraded to 2.4.4 perfectly. Would have done manually, but I could tell > from admin that it was fixed so I tried it. Voila. > > Now, plenty o

[web2py] Re: grid/smartgrid searching foreign key tables

2013-03-11 Thread Cliff Kachinske
Just so I'm clear, full text is when you just type the search term in the search field and click search. I've been doing the same as Jim and it takes as long as the whole rest of the controller put together. -- --- You received this message because you are subscribed to the Google Groups

[web2py] Re: select all in grid and smargrid?

2013-03-11 Thread 黄祥
just a suggestion, why not add feature this as a default grid / smartgrid? thank you On Tuesday, March 12, 2013 8:14:09 AM UTC+7, Massimo Di Pierro wrote: > > select > all > > On Monday, 11 March 2013 19:01:50 UTC-5, Jack wrote: >> >> Hi all, >> >> I was playing around with selectables in the gr

Re: [web2py] tips from a seasoned practitioner

2013-03-11 Thread Ricardo Pedroso
On Tue, Mar 12, 2013 at 1:00 AM, rh wrote: > I am using {{=response.toolbar()}} at the end of my views while I > work/test. I was also curious about the globals() dict and so I wrote > some code to print out globals(). I got carried away a little and > attempted to recurse that dict and learned th

[web2py] Re: select all in grid and smargrid?

2013-03-11 Thread Massimo Di Pierro
select all On Monday, 11 March 2013 19:01:50 UTC-5, Jack wrote: > > Hi all, > > I was playing around with selectables in the grid and smartgrid and found > this example code in the mailing list: > > selectable = lambda ids: delete(ids) > form=SQLFORM.grid(query, > selectable=selectable) > > def

[web2py] Re: 'Rows' object has no attribute '_db'

2013-03-11 Thread Alan Etkin
> > Of course this just dumps the JSON data into the javascript in the very > ugly JSON array I should be expecting from that call. Which is just fine. > Now I just have to figure out how to render that JSON data in a nice table > with Column headers. > For returning the query as json, you co

[web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Massimo Di Pierro
It is on the main page. It put it back in the download page too but wait for cache to clear. On Monday, 11 March 2013 17:43:24 UTC-5, DenesL wrote: > > > Wasn't there a version number on the download page?. > > > On Monday, March 11, 2013 3:54:29 PM UTC-4, Massimo Di Pierro wrote: >> >> Fixes man

[web2py] Re: parent child tree query logic

2013-03-11 Thread danny
Perhaps you can try other methods to model parent-child relationship? These are related to Closure Table but also talk about other methods: http://stackoverflow.com/questions/192220/what-is-the-most-efficient-elegant-way-to-parse-a-flat-table-into-a-tree http://dirtsimple.org/2010/11/simplest-wa

[web2py] I usually only post when something goes wrong

2013-03-11 Thread Lewis
Except this time, nothing did. Upgraded to 2.4.4 perfectly. Would have done manually, but I could tell from admin that it was fixed so I tried it. Voila. Now, plenty of time to work on my self-inflicted bugs. -- --- You received this message because you are subscribed to the Google Groups

[web2py] select all in grid and smargrid?

2013-03-11 Thread Jack
Hi all, I was playing around with selectables in the grid and smartgrid and found this example code in the mailing list: selectable = lambda ids: delete(ids) form=SQLFORM.grid(query, selectable=selectable) def delete(ids): to_delete=db(db.tabla.id.belongs(ids)) to_delete.delete() It

[web2py] Re: 'Rows' object has no attribute '_db'

2013-03-11 Thread Jamie Jernigan
Hi Alan, Thanks for the response, you are correct. I was passing what I thought was a query to the SQLForm.grid function without realizing that when you call .select() on a query it then becomes a Rows object. I've realize because of the Left join query I use, I'm not going to be able to use

[web2py] Re: Status of workflow functionality

2013-03-11 Thread Niphlod
minimal https://github.com/oxplot/fysom supercomplete https://github.com/knipknap/SpiffWorkflow I don't think that with all the solutions out there there is still to reinvent another module for it. On Monday, March 11, 2013 11:53:12 PM UTC+1, Timmie wrote: > > Hello, > what is the current s

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
ps: docs pretty self-explanatory, however setting STOP_TASK on the scheduler_worker row will terminate the currently RUNNING task (if any) given myscheduler = Scheduler(db, ) in models, in your controller you can call actually_stopped = myscheduler.stop_task(15) that will terminate task

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
please test it (trunk version). I'm sending a patch to Massimo to include it in trunk. On Monday, March 11, 2013 11:35:23 PM UTC+1, dlypka wrote: > > Wow. That will be nice. > Thanks. > > On Mon, Mar 11, 2013 at 5:28 PM, Niphlod >wrote: > >> PS: the task will end in FAILED status >> >> -- >>

[web2py] Status of workflow functionality

2013-03-11 Thread Tim Michelsen
Hello, what is the current status of the workflow engine? https://groups.google.com/forum/#!topic/web2py/osEmmtu9hlg Thanks in advance for any update, Timmie -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group

[web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread DenesL
Wasn't there a version number on the download page?. On Monday, March 11, 2013 3:54:29 PM UTC-4, Massimo Di Pierro wrote: > > Fixes many bugs reported by users. > > The web page has a new look. I hope you like it. > > http://web2py.com > > Many tanks to all the contributors, including but not li

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread David Lypka
Wow. That will be nice. Thanks. On Mon, Mar 11, 2013 at 5:28 PM, Niphlod wrote: > PS: the task will end in FAILED status > > -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https:

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
PS: the task will end in FAILED status -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https:/

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
is it ok if we add, e.g. STOP_TASK to the list of worker statuses and STOP_TASK basically does what KILL does without actually killing the worker process ? Having the process that is spawned to execute a task to spawn another thread to check on itself leads to transaction isolation problems. S

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread dlypka
Well the functions to terminate will still have be manually initiated by an operator clicking a button. And no workflow type of suspending / resuming a long running task is needed. And no workflow designer and no workflow Activity classes such as State Activities needed. Managers just need to kn

Re: [web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Marco Túlio Cícero de M . Porto
Wow!! Awesome Massimo!! :) WIth all due respect: I love you ! :) Really cool, loved it... Thanks again! 2013/3/11 Massimo Di Pierro > For it to work on existing apps you need to upgrade > controllers/appadmin.py views/appadmin.html (copy them from welcome) and > you need to install pygraphv

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
ok, seems more a goal of a workflow engine than a task queue, but I'll see what can be done. On Monday, March 11, 2013 10:54:10 PM UTC+1, dlypka wrote: > > a supervsior may decide to kill a task started by one of his team members. > > On Mon, Mar 11, 2013 at 4:50 PM, Niphlod >wrote: > >> "busine

Re: [web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread David Lypka
a supervsior may decide to kill a task started by one of his team members. On Mon, Mar 11, 2013 at 4:50 PM, Niphlod wrote: > "business condition" like > it seems a poor design to have a task, than watch it and if it "hangs for > some reason" kill it abruptly not based on "task started a whi

[web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
"business condition" like it seems a poor design to have a task, than watch it and if it "hangs for some reason" kill it abruptly not based on "task started a while ago" PS: are you on windows ? signal management on win poses a lot of limitations. On Monday, March 11, 2013 10:27:17 PM UTC+

Re: [web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Massimo Di Pierro
For it to work on existing apps you need to upgrade controllers/appadmin.py views/appadmin.html (copy them from welcome) and you need to install pygraphviz. Massimo On Monday, 11 March 2013 16:28:44 UTC-5, Marco Tulio wrote: > > Nice touch on the page, and 2.4.4 seems to fix some issues. > >

Re: [web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Marco Túlio Cícero de M . Porto
Nice touch on the page, and 2.4.4 seems to fix some issues. What's with that graph model, on models? When I click it, it says "invalid function (appadmin/graph_model)" ... Great job! 2013/3/11 Massimo Di Pierro > 2.4.4 is out and fixes this. Sorry. > > > On Monday, 11 March 2013 15:32:22 UTC

[web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread dlypka
timeout does not handle the case where it is discovered that the task needs to be stopped ASAP due to a business condition. For example the remote server may have limited connections available so if a task runs into trouble, the process needs to be killed ASAP to release the precious remote conne

[web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Massimo Di Pierro
2.4.4 is out and fixes this. Sorry. On Monday, 11 March 2013 15:32:22 UTC-5, Massimo Di Pierro wrote: > > grrr. reposting. Somebody posted a tweet in unicode. The twitter widget in > web2py choked and broke jQuery. Fixing it... > > On Monday, 11 March 2013 15:06:45 UTC-5, Derek wrote: >> >> More

[web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Massimo Di Pierro
grrr. reposting. Somebody posted a tweet in unicode. The twitter widget in web2py choked and broke jQuery. Fixing it... On Monday, 11 March 2013 15:06:45 UTC-5, Derek wrote: > > More info... > "Uncaught TypeError: Property '$' of object [object Object] is not a > function web2py.js:70" > > On Mo

[web2py] Re: grid/smartgrid searching foreign key tables

2013-03-11 Thread Niphlod
I never had to explain "anything" to the users a normal "fulltext" search is provided anyway if they don't dwell with the dropdowns etc etc etc. On Monday, March 11, 2013 9:20:15 PM UTC+1, Jim S wrote: > > I work around this by always coding custom filters for each grid I create. > It is g

[web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
having a single worker for each task can be daunting (well, you could wrap web2py.py -K appname in a never-ending loop so it's restarted as soon as it gets killed) #!/bin/sh while true do web2py/web2py.py -K yourapp echo 'killed, restarting in a bit' sleep 2 done but I'm curious

[web2py] Re: grid/smartgrid searching foreign key tables

2013-03-11 Thread Jim S
I work around this by always coding custom filters for each grid I create. It is great having the default capabilities that the search_widget provides within the grid, but I feel that it is too complicated for our typical users. For foreign key fields I will usually provide a SELECT control t

[web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread dlypka
Thanks for the quick reply. I suppose a workaround is to have a separate worker for each task. The I can TERMINATE the worker. A suggestion: can you suggest some standard python scaffolding to include in each task function to make it listen for a kill signal / message? On Monday, March 11, 2013

[web2py] Re: On a Smartgrid form is it possible to set create to False for parent nodes but true for child nodes

2013-03-11 Thread Jim S
Yes, you can do this. I do it with this code: securityTable = db.table_name currentTable = request.args(1) if currentTable and currentTable != 'edit' and currentTable != 'new': securityTable = currentTable.split('.')[0] editable = auth.has_permission('update', securityTable) cr

[web2py] Re: grid/smartgrid searching foreign key tables

2013-03-11 Thread Niphlod
one point is performances on large tables if your "original" needs some kind of access outside the grid. That's why I recommended a shallow copy to use only in the grid but hey, every app has its own logics. On Monday, March 11, 2013 7:50:36 PM UTC+1, Cliff Kachinske wrote: > > Thanks, Niphlod.

[web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Derek
More info... "Uncaught TypeError: Property '$' of object [object Object] is not a function web2py.js:70" On Monday, March 11, 2013 1:03:50 PM UTC-7, Derek wrote: > > Uninstalled an app, flash popped up "application 'newappadmin' > uninstalled" clicked on the 'x' in the span "closeflash" and the

[web2py] Re: How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread Niphlod
once the task is inserted you should not change it's values unless its in the QUEUED status (technically the ASSIGNED works too, but it's NOT recommended). there's no way for the scheduler to terminate a specific task once the task is started, unless you KILL the worker (setting the worker to TE

[web2py] Re: web2py 2.4.3 is OUT

2013-03-11 Thread Derek
Uninstalled an app, flash popped up "application 'newappadmin' uninstalled" clicked on the 'x' in the span "closeflash" and the flash doesn't close. It's stuck on the screen. Chrome 25 on windows. On Monday, March 11, 2013 12:54:29 PM UTC-7, Massimo Di Pierro wrote: > > Fixes many bugs reported

[web2py] Dutch pluralization

2013-03-11 Thread R. Osinga
Hi devs, Since there os nu dutch pluralization in web2py yet and the admin page shows this kinda like a problem, I wanted to give you feeback on it. Just copy the German *de.py* to *nl.py* and replace # Plural-Forms for de (Deutsch) nplurals=2 # German language has 2 forms: # 1 sing

Re: [web2py] web2py 2.4.3 is OUT

2013-03-11 Thread José Luis Redrejo
2013/3/11 Massimo Di Pierro : > Fixes many bugs reported by users. > > The web page has a new look. I hope you like it. > > http://web2py.com > I like the new look, but the link to the "interactive demo" under the "Web-Based IDE" does not work. -- --- You received this message because you are

[web2py] web2py 2.4.3 is OUT

2013-03-11 Thread Massimo Di Pierro
Fixes many bugs reported by users. The web page has a new look. I hope you like it. http://web2py.com Many tanks to all the contributors, including but not limited to: Alan, Paolo, Michele, Ricardo, Jonathan, Niphlod, Anthony. -- --- You received this message because you are subscribed to

[web2py] On a Smartgrid form is it possible to set create to False for parent nodes but true for child nodes

2013-03-11 Thread Michael Hall
My tables are: t_contact (the parent) t_paypal t_paypal_fails t_paypal_contacted All the child tables refer to the parents ID. I have a controller that looks like this: @auth.requires_login() def paypal_manage(): form = SQLFORM.smartgrid(db.t_contact,linked_tables=['t_paypal','t_paypal_fail

[web2py] Re: smartgrid showing values from cascading foreign tables.

2013-03-11 Thread memo
Thank you! Can u give me a sample query as I'm a total newbie here. Sorry :) On Sunday, 10 March 2013 14:52:01 UTC+2, memo wrote: > > I have tables: > cities > counties > neighboorhoods > streets > > The tabels are connected through foreign keys as follows: > streets->neighborhoods; neighborhood

[web2py] Re: I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread szimszon
Okay. :) 2013. március 11., hétfő 20:22:11 UTC+1 időpontban Alan Etkin a következőt írta: > > > Is it relevant where is logged into the application? > > It seems it is, since when the admininstrator session is expired, the wiki > access control returns to normal behavior (it requires access righ

[web2py] Re: I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread Alan Etkin
> Is it relevant where is logged into the application? It seems it is, since when the admininstrator session is expired, the wiki access control returns to normal behavior (it requires access rights for read and create wikis). -- --- You received this message because you are subscribed to th

[web2py] How to TERMINATE a RUNNING Scheduler Task?

2013-03-11 Thread dlypka
I need a way to terminate a specific Scheduled Task while it is RUNNING. I tried using Admin Database Admin to update the scheduler_task.stop_time to a time close to now while it was running. But the task continued for several more minutes and COMPLETED its normal 5 minute run. The task calls ti

[web2py] Re: grid/smartgrid searching foreign key tables

2013-03-11 Thread Cliff Kachinske
Thanks, Niphlod. Point taken. As I think about this, I realize that there's no law requiring me to use the foreign table's primary key as the foreign key reference. The only advantage in Postgres is the guaranteed uniqueness of the key. But I should get the same results if I enforce uniquenes

[web2py] Re: I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread szimszon
What do you mean when you say logged into admin? Is someone logged into web2py admin interface? Is it relevant where is logged into the application? Because the admin interface has only a password for login. If it is relevant than it would be good the have some feedback in admin which user is l

[web2py] Re: I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread Alan Etkin
> > membership record should be created automatically only for users logged > into admin. Are you saying this is not the case? > I think something is not working well with wiki authorization in trunk: I created two users in a new app, and removed one's membership to wiki_editors. Then tried to

[web2py] Re: 'Rows' object has no attribute '_db'

2013-03-11 Thread Alan Etkin
> > Also, I should note, this doesn't specifically have to be a SQLForm.grid. > I'm just trying to display the results of the query. Aren't you passing a Rows object as grid argument? The book says: "... The first argument of SQLFORM.grid can be a table or a query. ..." -- --- You recei

[web2py] Re: I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread Massimo Di Pierro
membership record should be created automatically only for users logged into admin. Are you saying this is not the case? On Monday, 11 March 2013 12:07:42 UTC-5, szimszon wrote: > > > > 2013. március 11., hétfő 18:05:36 UTC+1 időpontban Alan Etkin a következőt > írta: >> >> > ''wiki-editor'' I t

[web2py] Re: I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread szimszon
2013. március 11., hétfő 18:05:36 UTC+1 időpontban Alan Etkin a következőt írta: > > > ''wiki-editor'' I think it's just a typo :) > > Me too, there's no use of "wiki-editor" in the Wiki class (it checks for > "wiki_editor") > > > and than I recognized that the new user got in to a wiki_editor

[web2py] Re: I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread Alan Etkin
> ''wiki-editor'' I think it's just a typo :) Me too, there's no use of "wiki-editor" in the Wiki class (it checks for "wiki_editor") > and than I recognized that the new user got in to a wiki_editor group Did he actually got into the editors group (was that membership record created)? Or it

Re: [web2py] override smartgrid 'add' button

2013-03-11 Thread Derek
Nope, in fact, I'm bypassing the grid altogether and writing my own functions. luckily it's not too difficult. I just have a controller return the data, then I get that as json, and do with it what I want. I'm using jqote2 for that, as well as a little custom javascript. On Sunday, March 10, 20

Re: [web2py] Formatting radio widgets (or radio buttons)

2013-03-11 Thread Richard Vézina
An other option could be customize widget and you add the bootstrap class... On Mon, Mar 11, 2013 at 12:35 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Form custom maybe?? > > > http://web2py.com/books/default/chapter/29/07?search=custom+form#Custom-forms > > > On Mon, Mar 11, 2013

Re: [web2py] Formatting radio widgets (or radio buttons)

2013-03-11 Thread Richard Vézina
Form custom maybe?? http://web2py.com/books/default/chapter/29/07?search=custom+form#Custom-forms On Mon, Mar 11, 2013 at 4:39 AM, Johann Spies wrote: > How can I format radio widgets (or use Bootstrap's radio buttons) to work > like this (with radio buttons replacing the figures 1,2,3): > > >

Re: [web2py] Re: external link in menu with target option

2013-03-11 Thread Alfonso de la Guarda
Hi, By the way, this problem stills remains, i need to comment the line #25 , to the designers: what was the intention of that line? (before to change anything) Thanks! Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 99193

Re: [web2py] Re: Formatting error message "invalid query"

2013-03-11 Thread Marian Siwiak
thank you very much! that is what I needed. On Mon, Mar 11, 2013 at 2:54 PM, Niphlod wrote: > you want to display some other text than "invalid query" or you want to > customize the appearence of it ? > if you're interested in the appearence, use the css > > div.web2py_counter { > color: #

[web2py] Re: How to populate a SELECT field from a SQLFORM

2013-03-11 Thread José Manuel López Muñoz
Thank you Anthony. On Friday, March 8, 2013 5:47:48 PM UTC+1, Anthony wrote: > > See > http://stackoverflow.com/questions/8146260/best-practice-for-populating-dropdown-based-on-other-dropdown-selection-in-web2p/8152910#8152910 > . > > On Friday, March 8, 2013 2:03:28 AM UTC-5, José Manuel López M

[web2py] I got a fancy wiki problem. All user end up in rw mode :(

2013-03-11 Thread szimszon
Hi! I wonder if somebody could help me. I tried to set up a wiki in web2py and I face some funny errors :( 1, In book http://web2py.com/books/default/chapter/29/03 there is: ''recognizes permissions for "wiki-editor" and "wiki-author"'' but auth.wiki creates ''wiki_editor'' not ''wiki-ed

[web2py] Re: Is it possible to deploy using Tornado on GAE?

2013-03-11 Thread Christian Foster Howes
sorry, i meant to say that i have written code that performed poorly and therefore made pages slow to load. yes, there is a startup hit if your request launches a new instance. in most cases i have found this to be acceptable (certainly much better then booting a new linux VM when load goes hi

[web2py] Re: Problem setting PluginManager options

2013-03-11 Thread Alan Etkin
> > Well, it is a problem with my code. I tried a simplified plugin setup > following the old recipe (third edition) and it works. I cannot reproduce the problem, after making small changes to my code. I think I was overwriting the plugins variable by calling the PluginManager constructor twi

[web2py] Re: Formatting error message "invalid query"

2013-03-11 Thread Niphlod
you want to display some other text than "invalid query" or you want to customize the appearence of it ? if you're interested in the appearence, use the css div.web2py_counter { color: #8fb3f3; } On Monday, March 11, 2013 2:45:10 PM UTC+1, Marian Siwiak wrote: > > Dear All! > > I'm sorry i

[web2py] Formatting error message "invalid query"

2013-03-11 Thread Marian Siwiak
Dear All! I'm sorry if I repeat question earlier asked, but the specifics of it make it quite hard to find using search engine... My problem is, when I am using SQLFORM to interact with database, and when I type in an "invalid query", the appearing error message is almost impossible to notice

[web2py] Re: jQuery UI and type='date' or type='time'

2013-03-11 Thread Alan Etkin
> > $(function() { > $("#no_table_locality").autocomplete({ > source: "{{=URL('jqueryui', 'locality_autocomplete')}}", > minLength: 2 > }); > }); > > Did you check that the url is actually returning a json list of values? BTW, I'm not sure that .autocomplete is compatible

[web2py] Re: REF:Error accessing a foriegn key object

2013-03-11 Thread Teddy Nyambe
Thanks. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_o

[web2py] "unable to check for upgrades" error

2013-03-11 Thread Michael Beller
Running "Version 2.3.2 (2012-12-17 15:03:30) stable" on pythonanywhere.com Receive "unable to check for upgrades" when selecting button I see in the log: "POST /admin/default/check_version HTTP/1.1" 200 91 -- --- You received this message because you are subscribed to the Google Groups "web

[web2py] jQuery UI and type='date' or type='time'

2013-03-11 Thread Annet
In my model I have fields of type datetime, date and time some how these fields interfere with jQuery Ui's autocomplete. The problem is that when I create a form: form=SQLFORM(db.table) and table contains a field of type datetime, date or time the following code doesn't make the field locality

Re: [web2py] Scheduler and legacy databases

2013-03-11 Thread Massimiliano
Thank you! That is a great hint!! On Fri, Mar 8, 2013 at 11:04 AM, Niphlod wrote: > Ok, got it. it's not the scheduler's table you want with the booleans to > work, it's the things the scheduler execute that needs to interact with > some other tables in the environment...to be polite, that li

Re: [web2py] Re: select() - How to fetch specific fields?

2013-03-11 Thread Niphlod
expressions are supported (i.e. they don't break most of the times), but the resultset will not be accessible in the "normal" way (try it yourself with, e.g., select('id,last_name')). -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To un

[web2py] Re: Problem with smartgrid no GUI Bread Crums or missing buttons for links

2013-03-11 Thread Niphlod
it's not possible e.g. .web2py_paginator { padding:5px; text-align:right; background-color:#f2f2f2; } should render the export buttons greyish. You posted an image where they are white. Either the css is not there or the browser is not rendering them correctly. > >> >> --

[web2py] Re: grid/smartgrid searching foreign key tables

2013-03-11 Thread Niphlod
it's a problem on how to make it work without being heavily limited performance-wise. Having a custom format almost kills the possibility to fetch those records using an "automatic" join with the referenced table. It's one thing to fetch for every page the representation of the record for 10 ro

Re: [web2py] hosting on dreamhost and passenger

2013-03-11 Thread Khalil KHAMLICHI
Looks promising - thanks for the advice. On Mon, Mar 11, 2013 at 8:28 AM, Roberto De Ioris wrote: > > > Hi, > > > > Anyone has experience deploying web2py on dreamhost using passenger ? > > > > any instructions on that would be welcome. > > > > Thanks in advance. > > > > Khalil > > > > > > I str

[web2py] Re: Override _autocomplete function

2013-03-11 Thread Calvin
If of interest to anyone, eventually, I made my own autocomplete based on Bootstrap Typeahead: def bs_typeahead(f, v, **kwargs): options = {'_data-provide':'textahead'} options.update(kwargs) return CAT( INPUT(_type="text", _class="string", _id="%s_%s_ac" % (f._tablename,f .na

Re: [web2py] hosting on dreamhost and passenger

2013-03-11 Thread Roberto De Ioris
> Hi, > > Anyone has experience deploying web2py on dreamhost using passenger ? > > any instructions on that would be welcome. > > Thanks in advance. > > Khalil > > I strongly suggest you to use uWSGI instead of passenger (less resources needed, more features and obviously better performance): h

[web2py] hosting on dreamhost and passenger

2013-03-11 Thread Khalil KHAMLICHI
Hi, Anyone has experience deploying web2py on dreamhost using passenger ? any instructions on that would be welcome. Thanks in advance. Khalil -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop rece