Re: [web2py] github - please follow

2013-08-25 Thread Tim Richardson
strange but true: forking does not automatically star. -- --- 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 optio

[web2py] Re: Scheduler Namespace Gotcha

2013-08-25 Thread Limedrop
Thanks Niphlod. The scheduler really is a most excellent thing to use. On Sunday, August 25, 2013 12:07:09 AM UTC+12, Niphlod wrote: > > Thanks for spotting this. Scheduler global variables are safe in the > scheduler module, but inside the function that creates the environment to > run the task

[web2py] Re: "required" class for required fields

2013-08-25 Thread Massimo Di Pierro
Please open a ticket with your patch so I do not forget. I will look at it carefully tomorrow. I welcome more discussion on the topic. On Sunday, 25 August 2013 21:15:04 UTC-5, mr.freeze wrote: > > Precisely why I am pushing for a generic onrender method. Adding an > attributes property to eithe

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
Precisely why I am pushing for a generic onrender method. Adding an attributes property to either the field or the widget only couples it to the presentation layer further. Also, attributes are only one aspect of the usage. Others would be value based modification, wrapping the element or appe

[web2py] Re: WEB2PY iOS install APP

2013-08-25 Thread Massimo Di Pierro
Did you see this: http://www.web2pyslices.com/slice/show/1481/install-web2py-in-the-ipad Does it help? On Tuesday, 14 May 2013 17:51:06 UTC-5, Allan K wrote: > > Hi, > > I need to work with an app for web2py, but I do not know if I can use > web2py with iOS and install apps as I can with windo

[web2py] Re: "required" class for required fields

2013-08-25 Thread Massimo Di Pierro
I like this better than the original proposal but I am still unhappy. I think Field(...widget=...) is already too much coupling between the database layer and the presentation (form) layer. I do not think this coupling should be increased. Can we do something like: db.table.field.widget.attribu

[web2py] Re: Custom Apache Config for PHP and Web2Py

2013-08-25 Thread Massimo Di Pierro
thanks for the post. I ignored the existence of this: http://www.reddit.com/r/web2py On Sunday, 25 August 2013 15:53:44 UTC-5, Michael Herman wrote: > > in case anybody is interested ... > > http://mherman.org/blog/2013/08/25/custom-apache-config-for-php-and-web2py/ > > it's on reddit (web2py su

[web2py] Edit a variable in a controller / view with ajax

2013-08-25 Thread Trevor Overman
So what I’m trying to do is have an ajax function that would sort a list in the view that is defined in the controller. Ex. View sort {{for item in sorted_list:}} {{=item}} {{pass}} Controller sorted_list = [some_array_elements] ajax function ??? Any help on how to do

[web2py] Re: WEB2PY iOS install APP

2013-08-25 Thread Luc Chase
here's one ... https://itunes.apple.com/gb/app/python-2.7-for-ios/id485729872?mt=8 On Sunday, 25 August 2013 23:04:22 UTC+1, Christian Foster Howes wrote: > > to run a web2py server on iOS that would require a python interpreter on > iOS, and i don't know of one that exists. > > cfh > > On Sat

[web2py] Re: faster way to import csv

2013-08-25 Thread Alan Etkin
> > Hi guys, I am working on an application using web2py framework, and I need > to import a csv file that has a size of 700MB. Is there a faster way to > import it into the database ? I have tried the database administration > tool, but it takes forever. > Have you tried the web2py shell? ]

[web2py] faster way to import csv

2013-08-25 Thread Sebastian Demian
Hi guys, I am working on an application using web2py framework, and I need to import a csv file that has a size of 700MB. Is there a faster way to import it into the database ? I have tried the database administration tool, but it takes forever. PS: I am a newbie. Thank you. -- --- You re

[web2py] Re: "required" class for required fields

2013-08-25 Thread Alan Etkin
> "Ok, the thing is that there are no hooks in rendering cause all the >>> rendering is meant to be happen in your own widget." - I disagree. You >>> can >>> modify a SQLFORM after it renders. I am simply trying to achieve a >>> similar >>> effect at the Field level. >>>

[web2py] Re: WEB2PY iOS install APP

2013-08-25 Thread Christian Foster Howes
to run a web2py server on iOS that would require a python interpreter on iOS, and i don't know of one that exists. cfh On Saturday, August 24, 2013 5:26:34 PM UTC-7, vince wrote: > > i believe what he means is, create an ios app actually running web2py on > the device as backend server and with

[web2py] Re: We need a new plan for javascript validators

2013-08-25 Thread Christian Foster Howes
joe, about the money validator - if you set widget *and* requires on the Field object then you won't have the default integer validator. just make sure that your validator converts the string/decimal number to an int so that it can be stored in the DB (which expects an int). good luck! cfh

[web2py] Re: WEB2PY iOS install APP

2013-08-25 Thread samuel bonill
Web2py + RestAPI + lungo.tapquo.com + phonegap = Mobile aplication El martes, 14 de mayo de 2013 17:51:06 UTC-5, Allan K escribió: > > Hi, > > I need to work with an app for web2py, but I do not know if I can use > web2py with iOS and install apps as I can with windows and macOS. > > Thanks. >

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
BTW, I don't think you would ever use list:string or list:integer without IS_IN_SET or IS_IN_DB. From the book: "While list:reference has a default validator and a default representation, list:integer and list:string do not. So these two need an IS_IN_SET or an IS_IN_DB validator if you want to

[web2py] Custom Apache Config for PHP and Web2Py

2013-08-25 Thread Michael Herman
in case anybody is interested ... http://mherman.org/blog/2013/08/25/custom-apache-config-for-php-and-web2py/ it's on reddit (web2py sub) and i just posted on hacker news - upvote if you want! cheers! -- --- You received this message because you are subscribed to the Google Groups "web2

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
It still works fine for me after removing IS_IN_SET. What are you seeing? On Sunday, August 25, 2013 3:24:46 PM UTC-5, Niphlod wrote: > > try to remove the requires=IS_IN_SET... > > On Sunday, August 25, 2013 9:31:09 PM UTC+2, mr.freeze wrote: >> >> No grudge here. Just making my case for what I

Re: [web2py] github - please follow

2013-08-25 Thread Jonathan Lundell
On 25 Aug 2013, at 1:38 PM, Joe Barnhart wrote: > Call me a Luddite but I still like hg. Maybe it's cuz it's written Python... > ;-) Me too. But git won, so... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this g

Re: [web2py] Re: web3py?

2013-08-25 Thread Shawn McElroy
It has been quite some time since the topic was updated. So I was curious to the status of web3py. I know it's not done and I'm not asking for a release date. I am just wondering what is going on currently. On Wednesday, December 26, 2012 5:14:16 AM UTC-8, Alec Taylor wrote: > > +1 to WebRTC exa

Re: [web2py] github - please follow

2013-08-25 Thread Joe Barnhart
Call me a Luddite but I still like hg. Maybe it's cuz it's written Python... ;-) -- Joe On Sunday, August 25, 2013 4:44:01 AM UTC-7, Massimo Di Pierro wrote: > > We could. It helps me to have two copies. I have messed up the git repo a > couple of times. > > On Sunday, 25 August 2013 05:01:21

[web2py] Re: "required" class for required fields

2013-08-25 Thread Joe Barnhart
I just discovered that dictform and smartdictform override my "requires" and add their own, based on the type of the Field. It somewhat defeats the purpose of having a custom widget. -- Joe On Sunday, August 25, 2013 7:51:30 AM UTC-7, Niphlod wrote: > > -1 on the patch. > > I don't really get

[web2py] Re: "required" class for required fields

2013-08-25 Thread Niphlod
try to remove the requires=IS_IN_SET... On Sunday, August 25, 2013 9:31:09 PM UTC+2, mr.freeze wrote: > > No grudge here. Just making my case for what I consider to be a useful > patch. The overhead should be nominal since it only adds a null check and > moves on (premature optimization is the

[web2py] Re: We need a new plan for javascript validators

2013-08-25 Thread Joe Barnhart
I seem to keep underestimating the widget classes and their power. Reading the code I can see that widgets pretty much "own" the fields and their representation in all respects. I can change input class, "represents", "requires" and pretty much anything else the Field needs to show itself.

[web2py] Re: We need a new plan for javascript validators

2013-08-25 Thread Joe Barnhart
The javascript date validator seems to be using "click" to decide when to pop up. I notice when I tab into and out of the field the date widget is not correctly dealt with. Most obnoxiously, it stays up when I tab out of a field and continues to block form elements below the date field. I'l

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
No grudge here. Just making my case for what I consider to be a useful patch. The overhead should be nominal since it only adds a null check and moves on (premature optimization is the root of all evil). Copy/paste is bad for code reuse. As the default widgets improve over time, the copied/pa

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
After using this, I am convinced it is generally useful. Otherwise, I have to create custom widgets for each field. I cleaned up the patch and submitted it here: http://code.google.com/p/web2py/issues/detail?id=1648 On Sunday, August 25, 2013 2:07:10 PM UTC-5, Niphlod wrote: > > > > On Sunday

[web2py] Re: "required" class for required fields

2013-08-25 Thread Niphlod
On Sunday, August 25, 2013 6:45:21 PM UTC+2, mr.freeze wrote: > > "Ok, the thing is that there are no hooks in rendering cause all the >> rendering is meant to be happen in your own widget." - I disagree. You can >> modify a SQLFORM after it renders. I am simply trying to achieve a similar >>

[web2py] Re: how to bring out db table

2013-08-25 Thread davedigerati
As Alan said, can you provide a more detailed example? Super general example though would be in your view named your_page_name.html you place {{=the_record_you_wanted}} And in your default.py controller you would assign it a value for the_record_you_want by doing def your_page_name(): ge

[web2py] COUNTing over the table then GROUPBY those values, not a field

2013-08-25 Thread davedigerati
Is there a way to SELECT from my (SQLite) db with example structure/data that looks like this: sue | dog | cat | dog joe | cat | rat | dog joe | dog | dog | rat joe | cat | cat | cat tom | rat | dog | dog a counted, grouped-by set for JOE only that looks like: cat - 4 dog - 3 rat - 2 I've been

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
> > "Ok, the thing is that there are no hooks in rendering cause all the > rendering is meant to be happen in your own widget." - I disagree. You can > modify a SQLFORM after it renders. I am simply trying to achieve a similar > effect at the Field level. > "Also, what you're trying to achieve

[web2py] Re: "required" class for required fields

2013-08-25 Thread Niphlod
Ok, the thing is that there are no hooks in rendering cause all the rendering is meant to be happen in your own widget. Also, what you're trying to achieve works for input, but not for selects, list:string, etc etc. i.e. the method is only applicable if you know what widget is being used beforeh

[web2py] Re: GAE Cron, or some equivelant

2013-08-25 Thread Christian Foster Howes
which version of the SDK are you using? try visiting http://localhost:8000 or http://127.0.0.1:8000 you should then see the GAE SDK admin console, and hopefully there is a link to cron from there. also when you deploy you'll see cron jobs and their status in the gae admin console. On Wednesd

[web2py] Re: (GAE) periodic updates

2013-08-25 Thread Christian Foster Howes
if you have a large number of users running this once a week might take a long time... on app engine, use the app engine cron functionality to schedule a request once a week. i'd point that to an instance that can run for long time periods (these were called backends and then in a recent relea

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
Creating custom widgets is exactly what I'm trying to get around. I have a bunch of fields that just need a css class added. The default SQLFORM widgets work perfectly otherwise. So instead of creating a bunch of custom widgets I can just tweak the default widgets output for ALL fields like t

[web2py] Re: "required" class for required fields

2013-08-25 Thread Niphlod
-1 on the patch. I don't really get it. Why do you (and all of us) need yet another attribute (too many already) of the Field when we have widget= for it ? Is it really that hard to do def my_string_widget(field, value): return INPUT(_name=field.name, _id="%s_%s" % (field._tablename, field

[web2py] Re: "required" class for required fields

2013-08-25 Thread mr.freeze
Thanks Anthony. This is good for a specific use case but my patch would allow for arbitrary modification of a field's default widget output. I think this could be generally useful. On Sunday, August 25, 2013 9:04:20 AM UTC-5, Anthony wrote: > > Check out http://dev.s-cubism.com/plugin_notemp

[web2py] "required" class for required fields

2013-08-25 Thread Anthony
Check out http://dev.s-cubism.com/plugin_notemptymarker. Anthony -- --- 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

[web2py] We need a new plan for javascript validators

2013-08-25 Thread Anthony
Also, note that in this case, I think you can just do: Field('myfield', 'integer', widget=SQLFORM.widgets.string.widget) Anthony -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emai

[web2py] We need a new plan for javascript validators

2013-08-25 Thread Anthony
I think you have a point - it's a bit of a hassle to disable these validators without editing web2py.js. Maybe we should add some JavaScript flags that allow these to be disabled. Anthony -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] how to open web2py console shell on my windows 8 ??

2013-08-25 Thread Anthony
If you are using the source version of web2py, you be need to have Python installed. If using the Windows binary, replace web2py.py with web2py.exe in that command. Anthony -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe

[web2py] how to open web2py console shell on my windows 8 ??

2013-08-25 Thread kranthi aeronaut
hi all , please any one tell me how to open web2py console shell on my windows 8 machine , i have windows distribution of web2py & even source version of web2py , i have tried to start web2py shell from dos prompt by doing like this in command prompt *python web2py.py -s test -m* (from web2py d

[web2py] Re: We need a new plan for javascript validators

2013-08-25 Thread Niphlod
totally offtopic: that's why decimal was invented for ?! back in topic: if you don't need the js validators to kick in in any input because you want your own widget, strip them off the default code. if you need some custom widgets to match your own application logic (meaning "no, this one is not

Re: [web2py] github - please follow

2013-08-25 Thread Massimo Di Pierro
We could. It helps me to have two copies. I have messed up the git repo a couple of times. On Sunday, 25 August 2013 05:01:21 UTC-5, Marin Pranjić wrote: > > Web2py has two repositories and many users are not likely to follow/star > both. > > Any plans for dropping hg repo in the future? (just c

[web2py] We need a new plan for javascript validators

2013-08-25 Thread Joe Barnhart
I'm well into the development of my commercial website and I find I am running afoul of the built-in javascript validators in web2py more and more. If the validators were useless, the decision to just cut them out of the code and be done with it would be easy and simple. But they do have their

Re: [web2py] github - please follow

2013-08-25 Thread Marin Pranjić
Web2py has two repositories and many users are not likely to follow/star both. Any plans for dropping hg repo in the future? (just curious) Marin (mobile) On Aug 25, 2013 1:26 AM, "Massimo Di Pierro" wrote: web2py has many users but few github followers. This is a problem because the number of

Re: [web2py] Re: github - please follow

2013-08-25 Thread Jason (spot) Brower
done, never thought about doing it, but it makes sense. On Sun, Aug 25, 2013 at 9:37 AM, André Kablu wrote: > Done. +1 > > Em sábado, 24 de agosto de 2013 20h26min03s UTC-3, Massimo Di Pierro > escreveu: > >> web2py has many users but few github followers. This is a problem because >> the numbe