But I don't want the labels to have this class, just the actual form
elements
-Thadeus
On Sun, Nov 8, 2009 at 1:56 AM, Thadeus Burgess wrote:
> What would be the best way to automatically pass a certain class to every
> web2py form helper? (INPUT, TEXTAREA, etc..)
>
> -Thadeus
>
>
>
--~--~--
you must run web2py with --upgrade=yes this will upgrade admin/welcome/
examples
or manually
cd applications/admin
tar zxvf ../../admin.w2p
A lot of people seem to complain about this process. It is there
because I always thought people were going to modify admin. This never
happened. Should we
What would be the best way to automatically pass a certain class to every
web2py form helper? (INPUT, TEXTAREA, etc..)
-Thadeus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this gr
right now:
controllers/plugin_.py
On Nov 8, 1:52 am, Thadeus Burgess wrote:
> What specifies as a plugin action?
>
> -Thadeus
>
> On Sun, Nov 8, 2009 at 1:46 AM, mdipierro wrote:
> > ere pre is called before any other model, post after all mod
>
>
--~--~-~--~~~---
What specifies as a plugin action?
-Thadeus
On Sun, Nov 8, 2009 at 1:46 AM, mdipierro wrote:
> ere pre is called before any other model, post after all mod
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2p
2009/11/7 mdipierro :
>
> And if you do not see that it is because you must upgrade the admin
> interface.
>
No it is not there.
This is confusing. I have unzipped the new web2py_src.zip and thought
this is the way to upgrade. Is upgrading the amin interface then
another process?
It seems to
how about?
models/plugin_name/pre.py
models/plugin_name/call.py
models/plugin_name/post.py
where pre is called before any other model, post after all models and
call only when a plugin action is called.
the packaging would still work. We would need to add a couple of line
in gluon/compileapp/run
Meaning the only thing that needs to be changed is the admin plugin packing.
-Thadeus
On Sun, Nov 8, 2009 at 1:21 AM, Thadeus Burgess wrote:
> Or we could throw yet another naming convention into the mix.
>
> plugins that need pre-execution get a 0 appended before the name.
>
> plugins that n
Or we could throw yet another naming convention into the mix.
plugins that need pre-execution get a 0 appended before the name.
plugins that need post-execution, get a z appended
0_plugin_comments.py
z_plugin_layouts.py
-Thadeus
On Sun, Nov 8, 2009 at 1:11 AM, Thadeus Burgess wrote:
> Mayb
They should not but they may. I nobody has a better idea we can assume
alphabetic order. In any case we probably need two types of model
files for plugins (pre and post).
On Nov 8, 1:11 am, Thadeus Burgess wrote:
> Maybe execute them in alpha order. Plug-ins should not depend on other
> plug-ins
Maybe execute them in alpha order. Plug-ins should not depend on other
plug-ins?
-Thadeus
On Sun, Nov 8, 2009 at 1:00 AM, mdipierro wrote:
>
> It seems to me dispatching only affects controllers and the current
> mechanism works well for controllers.
>
> The problem is models. As you say plu
Really nice.
On Nov 7, 11:01 pm, Wes James wrote:
> Massimo,
>
> I thought I'd try some web2py with that site below:
>
> http://db.nr.usu.edu/qpacn
>
> Notice in the search box, as you type, it does the search as you type ;)
>
> -wes
>
> On Sat, Oct 3, 2009 at 3:54 PM, mdipierro wrote:
>
> >htt
It seems to me dispatching only affects controllers and the current
mechanism works well for controllers.
The problem is models. As you say plugin models should be able to say
"execute this before everything else" and "execute that after
everything else". The problem is what happens when two plug
+1 pls.
On Nov 8, 4:37 am, DenesL wrote:
> I will take one. Thank you.
>
> On 7 nov, 16:08, Nicolás de la Torre wrote:
>
> > Invited:
>
> > debe...@yahoo.com
> > kuo...@gmail.com
> > murxun...@googlemail.com
> > jorgeh...@gmail.com
>
> > I have 5 invites left. Just ask.
--~--~-~--~
Thank you DenesL. I appreciate very much for your help.
On Nov 7, 9:20 am, DenesL wrote:
> If you need a function with parameters then you would have to call it
> indirectly from your exposed controller action/function.
>
> def table1(a,b):
> ...
>
> @service.csv
> def exposed():
> # call t
Oh, ok. Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@goo
Massimo,
I thought I'd try some web2py with that site below:
http://db.nr.usu.edu/qpacn
Notice in the search box, as you type, it does the search as you type ;)
-wes
On Sat, Oct 3, 2009 at 3:54 PM, mdipierro wrote:
>
> http://desktop.sonspring.com/
> >
>
--~--~-~--~~
yes. you need the web2py_ajax.html that comes with the new welcome.w2p
On Nov 7, 9:47 pm, Wiiboy wrote:
> Is there something that has to be changed for this to work? Because
> response.files does absolutely nothing for me. I'm using revision 1392
--~--~-~--~~~---~--
Is there something that has to be changed for this to work? Because
response.files does absolutely nothing for me. I'm using revision 1392
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To pos
I will take one. Thank you.
On 7 nov, 16:08, Nicolás de la Torre wrote:
> Invited:
>
> debe...@yahoo.com
> kuo...@gmail.com
> murxun...@googlemail.com
> jorgeh...@gmail.com
>
> I have 5 invites left. Just ask.
--~--~-~--~~~---~--~~
You received this message becaus
Ah, strike that. Found it by going to my app's homepage.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this gro
On Fri, Nov 6, 2009 at 12:56, mdipierro wrote:
>
> http://web2py.com/layouts/plugin_layouts/index?apply=EfflorescenceOrange
>
cheering !
wonderful collection! help people easy make web2py beautful !
> - Try it online first.
> - Then download the plugin (it is 30MB and it includes 408 layouts
> a
I'm using revision 1392.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubsc
Umm, how exactly do I apply them? Copy and paste?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, sen
I have a solution, but you might not like it.
web2py needs a dedicated plugin subsystem.
With a dedicated plugin dispatcher, things like this can be controlled, a
plug-in can specify a setting PRE_MODEL/POST_MODEL that says "execute this
plugin before/after models are executed".
I still don't wa
On Wed, Nov 4, 2009 at 14:39, mdipierro wrote:
>
> Includes:
>
> Some bug fixes
> French translation, thanks Olivier
> A complete rewrite or the Rows object that make web2py faster and
> smaller
> DALStorage is renamed Row
> Now you can call web DAL form any Python program
>
> from gluon.sql
the current plugin mechanism has a problem. There is no way to specify
what should be executed before the other models and what after the
other models. They are executed in alphabetical order as any other
model. This problem needs a solution.
Executing all plugins before models is not a good solu
That is easy to do but, it were to return application/zip then your
web browser would try unzip them while it should not. web2py should
unzip them.
On Nov 7, 5:23 pm, guruyaya wrote:
> On another topic: Your server returns "text/plain" content type on
> these plugins. Is there a chance you can f
Thanks.
2009/11/4 mdipierro
>
> I would suggest using the Pound load balancer and web2py with built-in
> web server on the slaves. Pound provides sticky sessions which means
> requests from the same client will be always directed to the same
> (random) server this you do not need any special con
Love the module Mr Freeze.
I have some same questions about how plug-ins would find out about certain
things in your app.
Say I want to write a plugin_ratingsystem.py, how would I pass settings
along to the plug-in from my db.py? Since plug-in models get executed after
db.py.
What about making i
I think we should all start a public web2py wave! :)
-Thadeus
On Sat, Nov 7, 2009 at 3:54 PM, mdipierro wrote:
>
> I have account. I just have not figured out what I am supposed to do
> with it.
>
> On Nov 7, 3:08 pm, Nicolás de la Torre wrote:
> > Invited:
> >
> > debe...@yahoo.com
> > kuo
On another topic: Your server returns "text/plain" content type on
these plugins. Is there a chance you can find a way to change w2p file
to return an "application/zip" content type?
On Nov 7, 11:54 pm, mdipierro wrote:
> And if you do not see that it is because you must upgrade the admin
> inte
> I think plugins should assume db, auth, crud, mail, service.
> Don't you do the same with your code? A plugin is nothing more than a
> means to package and distribute your code.
I don't think code should ever assume anything. I used the instances
since they are in the same model. If I were to
You could for example make a plugin, that assumes db, goes over all
tables and all fields and, when the type is compatible, automatically
replaces the widgets with one of yours.
Massimo
On Nov 7, 4:47 pm, mdipierro wrote:
> On Nov 7, 4:06 pm, "mr.freeze" wrote:
>
> > Hmmm...Interesting proposi
On Nov 7, 4:06 pm, "mr.freeze" wrote:
> Hmmm...Interesting proposition. A couple of questions first:
>
> 1) How will the plugin know what the instances of Auth,Crud,Mail and
> DAL are named? Are auth,crud,mail and db pretty much reserved words
> now?
I think plugins should assume db, auth, cr
BTW, I know I mentioned these questions in the plugin discussion
thread and am not asking to be difficult. Just checking to see if they
are addressed now as it is a hangup for me in developing plugins.
On Nov 7, 4:06 pm, "mr.freeze" wrote:
> Hmmm...Interesting proposition. A couple of questions
Hmmm...Interesting proposition. A couple of questions first:
1) How will the plugin know what the instances of Auth,Crud,Mail and
DAL are named? Are auth,crud,mail and db pretty much reserved words
now?
2) How would I let the user decide which db to put the tables in if
they have multiple? Do th
I think this is nice.
If you now call that files models/plugin_settings.py and if all tables
have a prefix plugin_settings_*
then you can distribute it as a web2py.plugin.settings.py
Massimo
On Nov 7, 3:22 pm, "mr.freeze" wrote:
> I put this together to let non-developer admins manage setting
I have account. I just have not figured out what I am supposed to do
with it.
On Nov 7, 3:08 pm, Nicolás de la Torre wrote:
> Invited:
>
> debe...@yahoo.com
> kuo...@gmail.com
> murxun...@googlemail.com
> jorgeh...@gmail.com
>
> I have 5 invites left. Just ask.
--~--~-~--~~--
And if you do not see that it is because you must upgrade the admin
interface.
On Nov 7, 2:54 pm, villas wrote:
> On Nov 7, 8:41 pm, Johann Spies wrote:
>
> > I have 1.71.2 but I don't see a "plugin" button.
>
> At the very bottom of the design page, under modules.
--~--~-~--~~
You can do
{{extend mylayout}}
where mylayout is a variable passed from the controller to the view
and containing a file name. The only problem with this approach is
that you cannot bytecode compile the app since the layout will be
unknown at compilation time.
On Nov 7, 1:05 pm, villas wrote:
I put this together to let non-developer admins manage settings
through appadmin. It basically puts all settings that are string,
int, double or boolean in the database. I would like feedback on the
perils/merits of doing this.
http://www.web2pyslices.com/main/slices/take_slice/26
Thanks!
--~-
Invited:
debe...@yahoo.com
kuo...@gmail.com
murxun...@googlemail.com
jorgeh...@gmail.com
I have 5 invites left. Just ask.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group,
On Nov 7, 8:41 pm, Johann Spies wrote:
> I have 1.71.2 but I don't see a "plugin" button.
At the very bottom of the design page, under modules.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
2009/11/6 mdipierro :
>
> http://web2py.com/layouts/plugin_layouts/index?apply=EfflorescenceOrange
>
> - Try it online first.
> - Then download the plugin (it is 30MB and it includes 408 layouts
> already customized for web2py, sort of, + images and css).
> - Apply the plugin on top of an existing
On Nov 7, 2:46 pm, Iceberg wrote:
> That site is nothing more than a joke. But it really makes me laugh.
Yes, and I love this quote from the 'about' page:
"In fact, why not send us your life savings?"
Now that's what you call donationware! LOL
--~--~-~--~~~---~--~--
I believe I've seen the answer to this before, but I can't find it.
1. How does one change the layout from the controller? Is the best
way to open the view file and write to it a new {{extend
'mylayout.html'}} as in the new layout plugin ?
2. Is there a way of including a variable inside {{bra
thank you here too :)
On Sat, Nov 7, 2009 at 6:58 PM, Thadeus Burgess wrote:
> Nicolás de la Torre
>
> Your the man!
>
> -Thadeus
>
>
>
>
>
> On Sat, Nov 7, 2009 at 7:13 AM, Peterle wrote:
>
>>
>> I'm on it..
>>
>> hcvst ha scritto:
>> >
>> http://wavedirectory.appspot.com/init
I agree. If you want to send me some text I will include, else I can
write it too.
On Nov 7, 11:12 am, Iceberg wrote:
> I can confirm that the lock.release is back. Thanks!
>
> One minor suggestion, your valuable comments which come from many test
> and efforts, are worthy to be put into CacheIn
Nicolás de la Torre
Your the man!
-Thadeus
On Sat, Nov 7, 2009 at 7:13 AM, Peterle wrote:
>
> I'm on it..
>
> hcvst ha scritto:
> >
> http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2521w%252BDPsJaggYA
> >
> > A public wave to discuss wave development on
One typo. In Rows.__getslice__(), there is a "seld.db" which should be
"self.db".
By the way, one of my app relied on Rows._db is broken now, but not a
big deal, I can adjust it to use Rows.db instead. I know all
Class._foo naming convention indicates it is an internal variable so
no backward com
I can confirm that the lock.release is back. Thanks!
One minor suggestion, your valuable comments which come from many test
and efforts, are worthy to be put into CacheInRam.__call__() 's doc
string or comment. Do you think so?
On Nov8, 12:34am, mdipierro wrote:
> Turns out the deepcopy has som
Turns out the deepcopy has some problems:
1) breaks backward compatibility
2) it is limiting because people may want to cache live objects
3) it cannot work unless we deepcopy no storage and retrival which
would make things slow.
Please check trunk again. I think the release is back.
On Nov 7,
Wow, the shallowcopy old days come back! ^o^
One more typo. You forgot the "self.locker.release()" in line 181 of
cache.py in latest fix. I tried put it back and then everything is
smooth again.
On Nov7, 11:32pm, mdipierro wrote:
> OK. Please try trunk again.
>
> On Nov 7, 12:20 am, Iceberg w
I agree. It is a joke.
On Nov 7, 8:46 am, Iceberg wrote:
> On Nov7, 1:10pm, mdipierro wrote:
>
> > It is good but I do not understand what the data source is.
>
> >http://www.hiprank.com/django-vs-ruby-on-rails-vs-web2py.html
>
> That site is nothing more than a joke. But it really makes me lau
On Nov 7, 8:37 am, vvk wrote:
> I'm unable to find solutions to these:
>
> i) I'll add a record in auth_user table and my application should
> check for email & passwd values in auth_user table while logging. I've
> two login methods (first checks with POP server for confirmation) and
> if it fai
slite does not enforce column types. web2py tries to do it.
On Nov 7, 5:26 am, Hans Murx wrote:
> Did that:
>
> >>> db = DAL("sqlite://db.db")
> >>> db.define_table("t1", Field("f1", "date"))
> >>> db.t1.insert(f1="a")
> 1
> >>> db.t1[1].f1
>
> Traceback (most recent call last):
> File "", lin
yes. Look at the code in admin/controllers/shell.py
On Nov 7, 3:25 am, Roger Gicquel wrote:
> Is there a (good) way to control a job from a web2py controller ?
> By control I mean: start, stop and communicate with it.
> By job I mean everything that take too long to wait the end before the
> con
OK. Please try trunk again.
On Nov 7, 12:20 am, Iceberg wrote:
> Bad news. My app is still broken with the latest trunk, when using
> reference field. Put the following code in your model.
>
> db.define_table('task',
> Field('name'),
> )
>
> db.define_table('schedule',
> Field('task',db.ta
On Nov7, 1:10pm, mdipierro wrote:
> It is good but I do not understand what the data source is.
>
> http://www.hiprank.com/django-vs-ruby-on-rails-vs-web2py.html
That site is nothing more than a joke. But it really makes me laugh.
For example, see this: http://www.hiprank.com/boy-vs-girl.html
-
I'm unable to find solutions to these:
i) I'll add a record in auth_user table and my application should
check for email & passwd values in auth_user table while logging. I've
two login methods (first checks with POP server for confirmation) and
if it fails, it should check in auth_user table. Ho
Another one:
http://www.sucks-rocks.com/rate/web2py/django/ruby+on+rails
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscrib
If you need a function with parameters then you would have to call it
indirectly from your exposed controller action/function.
def table1(a,b):
...
@service.csv
def exposed():
# call table1(x,y) in here
On 7 nov, 08:16, dbb wrote:
> I am trying to program web services, such as,
> @servic
Great!
I will email you.
On 7 nov, 07:49, Hans Murx wrote:
> Running tests with informix (IDS 9.40) would be no problem for me.
> Please let me know, how I can start helping (some years of informixdb
> user experience available).
>
> Hans
--~--~-~--~~~---~--~~
Y
Running tests with informix (IDS 9.40) would be no problem for me.
Please let me know, how I can start helping (some years of informixdb
user experience available).
Hans
On 7 Nov., 13:25, DenesL wrote:
> My fault. Working on it, I will post something soon.
>
> Unfortunately legacy database su
I am trying to program web services, such as,
@service.csv
def table1(a,b):
return [[a,b],[1,2]]
On Nov 7, 7:33 am, DenesL wrote:
> That is by design.
> What are you trying to do?.
>
> On 7 nov, 07:22, dbb wrote:
>
>
>
> > a function with a parameter does not show up in the list of functions
I'm on it..
hcvst ha scritto:
> http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2521w%252BDPsJaggYA
>
> A public wave to discuss wave development on web2py.
>
> HC
--~--~-~--~~~---~--~~
You received this message because you are s
That is by design.
What are you trying to do?.
On 7 nov, 07:22, dbb wrote:
> a function with a parameter does not show up in the list of functions
> in the controller,
> e.g. def name( a, b): return( a+b), can not be found in the controller.
--~--~-~--~~~---~--~~
1 would be nice!
On 7 Nov., 08:44, Nicolás de la Torre wrote:
> i have sent invites to:
>
> vinc...@vincentdavis.com
> thade...@thadeusb.com
> szims...@gmail.com
> boris.manojlo...@gmail.com
> richard_gor...@verizon.net
> chris.st...@gmail.com
> m.grit...@gmail.com
> lapcc...@gmail.com
> obutov.
My fault. Working on it, I will post something soon.
Unfortunately legacy database support is only available for MS SQL,
DB2 and IngresDB so far.
But if you are willing to help by running tests and contributing your
knowledge on informix we can add support for it too.
Denes.
On 7 nov, 03:43, H
a function with a parameter does not show up in the list of functions
in the controller,
e.g. def name( a, b): return( a+b), can not be found in the controller.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-
+1 please
2009/11/7 Nicolás de la Torre
>
> i have sent invites to:
>
> vinc...@vincentdavis.com
> thade...@thadeusb.com
> szims...@gmail.com
> boris.manojlo...@gmail.com
> richard_gor...@verizon.net
> chris.st...@gmail.com
> m.grit...@gmail.com
> lapcc...@gmail.com
> obutov...@googlemail.com
Is there a (good) way to control a job from a web2py controller ?
By control I mean: start, stop and communicate with it.
By job I mean everything that take too long to wait the end before the
controller return. My first need is a long running python function
(that I can encapsulate in an object,
History of changes (http://web2py.com/examples/default/changelog)
says:
> 1.69.1
[...]
> Better support for legacy databases (thank Denes)
Unfortunately I have not been able to find more information about this
issue. :-(
Desperately waiting for support of informix non "id" / non integer
primar
Did that:
>>> db = DAL("sqlite://db.db")
>>> db.define_table("t1", Field("f1", "date"))
>>> db.t1.insert(f1="a")
1
>>> db.t1[1].f1
Traceback (most recent call last):
File "", line 1, in
File "gluon/sql.py", line 1468, in __getitem__
File "gluon/sql.py", line 2883, in select
File "gluon/
add me please.
On Nov 4, 1:54 am, hcvst wrote:
> http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2...
>
> A public wave to discuss wave development on web2py.
>
> HC
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
76 matches
Mail list logo