[web2py] Re: preparing for 1.99.1

2011-09-13 Thread rif
Excellent redis cache feature. If we store session in cache will it auto expire and be removed? Please add at least a small description in the release note about new syntax features (new syntax rows[i]('tablename.fieldname'), new query syntax field.contains(list,all=True or False)). I have be

Re: [web2py] Re: New UI package

2011-09-13 Thread Vasile Ermicioi
that means I can use it in commercial purpose but can't sell the source?

Re: [web2py] Re: Mobile detector

2011-09-13 Thread Martin Weissenboeck
Hi, I have tried to test the user_agent_parser. At the top of default.py there is from gluon.contrib import user_agent_parser @mobilize def m(): ua = request.user_agent() if ua.is_mobile(): return dict(a='MOBILE') else: return dict(a='FIX') And I got: Traceback (mo

[web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Michele Comitini
If you enjoy speed read the following web2pyslice.com: http://goo.gl/8ybpZ comments are welcome! mic

Re: [web2py] Re: Mobile detector

2011-09-13 Thread Angelo Compagnucci
Hi Martin, You are right, but the previous trunk version it worked. Massimo, could you enlighten us? Thanks! 2011/9/13 Martin Weissenboeck : > Hi, > > I have tried to test the user_agent_parser. At the top of default.py there > is > > from gluon.contrib import user_agent_parser > > @mobilize >

Re: [web2py] Re: New UI package

2011-09-13 Thread Michele Comitini
Vasile, You can use it anyway you want, but you *have* to sell to your customer with *your* sources and or modifications; that is what GPL is about. If you do not want to give access to the sources you have to buy a license. mic 2011/9/13 Vasile Ermicioi : > that means I can use it in commercia

Re: [web2py] Re: billing app

2011-09-13 Thread Kenneth Lundström
Source can be found at: http://web2py.nudata.fi/em/static/em.tar.gz I first used the Pack command i Admin but it packed a little to much, e.g. uploads. There is an small problem when starting with an empty database. You have to insert some values into database to be able to start using this

Re: [web2py] Re: If you have not followed recent changes .....

2011-09-13 Thread Bruno Rocha
index: http://www.diigo.com/item/image/121xl/3iob manage_tasks - add: http://www.diigo.com/item/image/121xl/2smp without - jquery ui 1- http://www.diigo.com/item/image/121xl/58h7 2 - http://www.diigo.com/item/image/121xl/21ym

Re: [web2py] Re: If you have not followed recent changes .....

2011-09-13 Thread Bruno Rocha
I am going to work a little bit more on CSS to adjust some borders and icons.

[web2py] Re: instruct web2py only to alter table.

2011-09-13 Thread vortex
It says: InternalError: (1050, u"Table 'app_version' already exists") When migrate=True. And it is true. I don't want it to recreate anything. What does web2py detect here? that tables are different from .table file? Should I delete .table files? On Sep 9, 2:34 pm, Massimo Di Pierro wrote:

Re: [web2py] Re: Mobile detector

2011-09-13 Thread Martin Weissenboeck
You are right - as always :-) Now it works. I have only copied the (wrong) example from this thead. 2011/9/13 Massimo Di Pierro > Shouldn't this be > > from gluon.contrib.user_agent_parser import mobilize > @mobilize > ... > > On Sep 13, 3:22 am, Martin Weissenboeck wrote: > > Hi, > > > > I h

[web2py] .mobile.html disappeared

2011-09-13 Thread Martin Weissenboeck
I have written a small test function "def m()" for the @mobilize decorator. Then I have created two views "default/m.html" and "default/m.mobile.html". Both views are working correct, but the second one has disappeared from the view menu: - Edit

[web2py] Re: instruct web2py only to alter table.

2011-09-13 Thread Massimo Di Pierro
try define_table(,migrate=True,fake_migrate=True) On Sep 13, 4:56 am, vortex wrote: > It says: > InternalError: (1050, u"Table 'app_version' already exists") > > When migrate=True. And it is true. I don't want it to recreate > anything. What does web2py detect here? that tables are different

[web2py] Re: .mobile.html disappeared

2011-09-13 Thread Massimo Di Pierro
I think I fixed it in trunk. Can you check? On Sep 13, 8:24 am, Martin Weissenboeck wrote: > I have written a small test function "def m()" for the @mobilize decorator. > Then I have created two views "default/m.html" and "default/m.mobile.html". > Both views are working correct, but the second o

Re: [web2py] Re: If you have not followed recent changes .....

2011-09-13 Thread António Ramos
does this have some kind of workflow? 2011/9/13 Bruno Rocha > I am going to work a little bit more on CSS to adjust some borders and > icons.

[web2py] Re: Mobile detector

2011-09-13 Thread Massimo Di Pierro
Shouldn't this be from gluon.contrib.user_agent_parser import mobilize @mobilize ... On Sep 13, 3:22 am, Martin Weissenboeck wrote: > Hi, > > I have tried to test the user_agent_parser. At the top of default.py there > is > > from gluon.contrib import user_agent_parser > > @mobilize > def m():

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Jonathan Lundell
On Sep 13, 2011, at 2:10 AM, Michele Comitini wrote: > If you enjoy speed read the following web2pyslice.com: > > http://goo.gl/8ybpZ > > comments are welcome! Where would we see the improvements, compared (say) to a straight Apache mod_wsgi configuration?

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Vasile Ermicioi
or compared to nginx + uwsgi (uwsgi protocol is built in nginx since 0.8+ version)

[web2py] Re: How to flash a message after a callback

2011-09-13 Thread Cliff
That's probably correct. I have not tracked the response codes in Firefly. On Sep 12, 1:49 pm, Anthony wrote: > On Monday, September 12, 2011 1:23:47 PM UTC-4, Cliff wrote: > > > >> If the db update failed in the regular controller I would assume that > > >> a ticket page would appear. But what

Re: [web2py] Re: .mobile.html disappeared

2011-09-13 Thread Martin Weissenboeck
Ok, I have to wait for the nightly built :-) I think I should spend some time to learn how to work with the repository 2011/9/13 Massimo Di Pierro > I think I fixed it in trunk. Can you check? > > On Sep 13, 8:24 am, Martin Weissenboeck wrote: > > I have written a small test function "def

Re: [web2py] SQLFORM.grid representation

2011-09-13 Thread Jim Steil
Is it possible that this is a bug? (I don't have the expertise/confidence to say it is definitely a bug).I duplicated your example and can reproduce your results. But, if I go through appadmin and list out my table the owner name does appear. -Jim On 9/12/2011 9:51 PM, Simon Ashley

[web2py] shadow code in embedded editor

2011-09-13 Thread António Ramos
hello, why do i see sometimes my code mixed with another code in grey color in the embedde editor When i want to correct some code i have to place the cursor far away from the code in a trial error situation. This is very odd and only affects me sometimes and in just a part of the code. is this a

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Michele Comitini
- Apache eats memory and does not use epoll, you cannot load balance, you need web2py on the same host so it does scale not well. - uwsgi + nginx could be as good but for sure it is a bit harder to setup since it has a zillion of features, scales very well. uwsgi has a little layer above python so

[web2py] Re: shadow code in embedded editor

2011-09-13 Thread Anthony
I always have a problem with it in IE (on Windows). It actually works better in IE7 than IE9 (still problems in IE7, though). Seems fine in Chrome and Firefox. Which browser are you using? It's a third-party plugin (EditArea), so I'm not sure there's much we can do about it. I see the same prob

Re: [web2py] Re: XML-RPC Service Introspection / Discovery

2011-09-13 Thread Michele Comitini
+1 Cool! But we need to take the bad note too... >> However, you will notice that there is another method in there: >> system.methodSignature(). This would show the signature of the method (i.e. >> concat(str1, str2, str3=''), however, it seems that web2py's XMLRPC server >> implementation (or S

[web2py] Re: preparing for 1.99.1

2011-09-13 Thread juanduke
Hi Massimo: When do you estimate a release date for 1.99.1 ? maybe days, weeks, hours,...? Bye

[web2py] Re: deploying web2py on IIS

2011-09-13 Thread Omi Chiba
sherdim, Thank you again! I'm ALMOST there. I finished all the settings and excited to see the result at http://localhost/ochibaapp/ but I got HTTP Error 500.0 - Internal Server Error. Do you have any idea where I should check ? I use IIS 7.5 with IIS 6 Management Cimpatibility. Windows applic

Re: [web2py] preparing for 1.99.1

2011-09-13 Thread Martín Mulone
Massimo, In the pycon argentina, the 23 sept, I'm going to talk about grid, scheduler, new import, conditional models, etc. It will be great if we have this stable for this date :) 2011/9/13 Massimo Di Pierro > There is huge list of new features already in trunk that will be > included in 1.99.1

[web2py] What if i want 2 views for the same controller function?

2011-09-13 Thread António Ramos
If i have 2 views with the same controller function i should not create the second function in the same controller. Also detecting for example ismobile in the view makes me mix diferent perspectives in the same view. This i find ugly coding. and ugly reading There should be some mecanism that cou

Re: [web2py] Re: .mobile.html disappeared

2011-09-13 Thread Angelo Compagnucci
Hi Martin, The first time you download the source you can use: hg clone https://code.google.com/p/web2py/ web2py-dev Getting the latest version is really a matter of typing: hg pull -u into the web2py-dev folder! 2011/9/13 Martin Weissenboeck : > Ok, I have to wait for the nightly built  :-)

Re: [web2py] What if i want 2 views for the same controller function?

2011-09-13 Thread Richard Vézina
Why not : def your_master_controller_func() do your stuff def your_second_controller/view_refering_to_the_output_of_the_preceding_func() return your_master_controller_func() Didn't try... But I don't see why it couldn't works... Richard 2011/9/13 António Ramos : > If i have 2 views wit

Re: [web2py] Re: shadow code in embedded editor

2011-09-13 Thread António Ramos
I´m using OPERA last version I noticed some days ago that after i clicked some combination of keys the shadow appears. Same click again and shadow disappears. Now i forgot the keys i pressed. I´m so stupid... 2011/9/13 Anthony > I always have a problem with it in IE (on Windows). It actually wo

Re: [web2py] What if i want 2 views for the same controller function?

2011-09-13 Thread António Ramos
Yes, i tried and works, but. not 100 perfect! 2011/9/13 Richard Vézina > Why not : > > def your_master_controller_func() >do your stuff > > def > your_second_controller/view_refering_to_the_output_of_the_preceding_func() >return your_master_controller_func() > > Didn't try... But

[web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Anthony
Within a controller function, you can do response.view='your_view' if you want to use a view other than the default (i.e., /views/controller/function.extension). Anthony On Tuesday, September 13, 2011 11:31:03 AM UTC-4, Ramos wrote: > > If i have 2 views with the same controller function i shou

[web2py] web2py.com down again

2011-09-13 Thread Anthony
http://www.downforeveryoneorjustme.com/web2py.com

Re: [web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Richard Vézina
Pretty interresting... You should watch your name space for latter controller naming... Thanks Anthony for this info. Richard On Tue, Sep 13, 2011 at 12:04 PM, Anthony wrote: > Within a controller function, you can do response.view='your_view' if you > want to use a view other than the default

Re: [web2py] Re: Issues with TAG() encoding and XML().flatten()

2011-09-13 Thread jot.be
I searched the ML and found a thread that mentions a similar issue with TAG() and Unicode: http://groups.google.com/group/web2py/browse_thread/thread/a716d6d77bf6e933?pli=1 I cannot reproduce the described issues with TAG[tagname](input), but I still have the problem with passing a Unicode string

[web2py] Component inside jquery-ui tab or accordion

2011-09-13 Thread Jim Steil
Hi Has anyone ever tried (successfully) to put a component inside of a jquery-ui tab or accordion pane? I'm trying, but it never shows up for me. Wondering if it is something I have messed up or something I should expect to work. -Jim

Re: [web2py] web2py.com down again

2011-09-13 Thread Jim Steil
It is working for me... -Jim On 9/13/2011 11:05 AM, Anthony wrote: http://www.downforeveryoneorjustme.com/web2py.com

[web2py] Re: web2py.com down again

2011-09-13 Thread juanduke
Hi Anthony: downforeveryoneorjustme tells me that is up, my browser too, with a delay longer than normal, but loads ok! I think hosting still with some issues. Bye

Re: [web2py] Component inside jquery-ui tab or accordion

2011-09-13 Thread Richard Vézina
You need two controller function a empty one for display your component in in... In the view of this first function you will put the tab jquery ui code with you LOAD invocation to your other controller function that will contain your component... Richard On Tue, Sep 13, 2011 at 12:14 PM, Jim Stei

[web2py] modules and plugins

2011-09-13 Thread Christopher Baron
Hi web2py users, Let's say I have a lot of functions that I would like to include into a plugin. I do not want all of these functions in the controller of the plugin. What's the best way to include a large number of utility functions into a plugin ? Thanks in advance, Chris

[web2py] Re: If you have not followed recent changes .....

2011-09-13 Thread DenesL
I get same screens as Bruno (without jQuery UI version) on Firefox 6. errata, change views are follows: ### File: views/default/index.html {{extend 'layout.html'}} {{=grid}} ### File: views/default/manage_tasks.html {{extend 'layout.html'}} {{=grid}} ### File: views/default/view_task.html {{ext

[web2py] Testing trunk get error in external iframe on Welcome app index page

2011-09-13 Thread ron_m
I was testing trunk, ran the Welcome application and the Firebug debugger got a script error _gat not defined in file http://static.addtoany.com/menu/sm5.html line 1. Checking the DOM load of the index page I see an iframe http://static.addtoany.com/menu/sm5.html#page;http://127.0.0.1:8000/welc

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Vasile Ermicioi
> > it is a bit harder to setup are you joking ? search this group and u will see my comments using uwsgi on webfaction nginx <-socket-> uwsgi+python u can use builtin webserver and u will not have layers at all and SCGIServer is written in python which makes it slower it scales smoothly on mu

Re: [web2py] Component inside jquery-ui tab or accordion

2011-09-13 Thread Jim Steil
Yes, I have that. My view with the load component looks like this: Tab 1 Tab 2 Tab 3 {{=LOAD('applications','dpEmployees.load',args=[response.editId],ajax=True)}} Freight Rates go here Other stuff goes here If I take the divs (tab stuff) and other stuff out,

[web2py] Does represent works with a simple sqlrow?

2011-09-13 Thread Elcimar
Hi folks, newbie question here. I have a table 'mensagens' with a field: SQLField("usuario", "integer", length=255, notnull=True, default=None, represent = lambda id: db.acessos[id].nick) Then, after adding some data to this table I try to view some records: registros = SQLTABLE(db().select(db.m

Re: [web2py] Component inside jquery-ui tab or accordion

2011-09-13 Thread Jim Steil
Ok - turns out I'm an idiot. It is working just fine. -Jim On 9/13/2011 11:38 AM, Jim Steil wrote: Yes, I have that. My view with the load component looks like this: Tab 1 Tab 2 Tab 3 {{=LOAD('applications','dpEmployees.load',args=[response.editId],ajax=True)}} Fr

[web2py] python * function in Html Helpers

2011-09-13 Thread António Ramos
Hello, i dont understant quite well how to interpret the *** in this code: table = [['a', 'b'], ['c', 'd']] 2 >>> print TABLE(***[TR(***rows) for rows in table]) 3 abcd Can someone please have the kindness to better understand it I read the book but still not get it thank you

Re: [web2py] python * function in Html Helpers

2011-09-13 Thread Jonathan Lundell
On Sep 13, 2011, at 10:10 AM, António Ramos wrote: > Hello, i dont understant quite well how to interpret the * in this code: It's just Python syntax: http://docs.python.org/tutorial/controlflow.html#unpacking-argument-lists > > > table = [['a', 'b'], ['c', 'd']] > 2 >>> print TABLE(*[TR(*r

[web2py] Re: python * function in Html Helpers

2011-09-13 Thread Anthony
In Python, if you have a list or tuple, you can precede it with an "*" and pass it as an argument to a function, and the function will treat it as if each item in the list were passed as a separate positional argument (same thing for preceding a dictionary with "**", which will treat the diction

[web2py] Re: Does represent works with a simple sqlrow?

2011-09-13 Thread Anthony
On Tuesday, September 13, 2011 12:59:41 PM UTC-4, Elcimar wrote: > > Hi folks, newbie question here. > I have a table 'mensagens' with a field: > > SQLField("usuario", "integer", length=255, notnull=True, default=None, > represent = lambda id: db.acessos[id].nick) > > Then, after adding some da

Re: [web2py] Component inside jquery-ui tab or accordion

2011-09-13 Thread Richard Vézina
;-) Richard On Tue, Sep 13, 2011 at 1:05 PM, Jim Steil wrote: > Ok - turns out I'm an idiot.  It is working just fine. > >    -Jim > > On 9/13/2011 11:38 AM, Jim Steil wrote: >> >> Yes, I have that.  My view with the load component looks like this: >> >> >> >> Tab 1 >> Tab 2 >> Tab 3 >> >> >

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Roberto De Ioris
>> >> it is a bit harder to setup > > are you joking ? > search this group and u will see my comments using uwsgi on webfaction > > nginx <-socket-> uwsgi+python > > u can use builtin webserver and u will not have layers at all > and SCGIServer is written in python which makes it slower > > it sc

[web2py] Re: web2py.com down again

2011-09-13 Thread Anthony
Yes, it's up again now.

[web2py] Re: preparing for 1.99.1

2011-09-13 Thread nick name
The 'detect_types" patchfor sqlite has not been applied (not sure if you were planning to or not)

[web2py] How to Import a dynamically generated code?

2011-09-13 Thread Lazarof
Hello! I copy and paste this code [ref1] to the default controller of the default application: def testImportCode(): # Example code = \ """ def testFunc(): return "spam!" class testClass: def testMethod(self): return "eggs!" """ m = importCode(code,"test") spam = m

Re: [web2py] Re: Does represent works with a simple sqlrow?

2011-09-13 Thread roberto...@gmail.com
This small detail I think is affecting grid and powergrid not think it should be solved that way Anthony escribió: On Tuesday, September 13, 2011 12:59:41 PM UTC-4, Elcimar wrote: Hi folks, newbie question here. I have a table 'mensagens' with a field: SQLField("usuario", "integer", length=

[web2py] Re: How to Import a dynamically generated code?

2011-09-13 Thread Anthony
On Tuesday, September 13, 2011 2:31:58 PM UTC-4, Lazarof wrote: > > > Question N2 - Why the page .../admin/default/design/application is > now exposing testFunc():? Try indenting the 'def' for your example code function definition at least one character (you might have to strip it later) and

Re: [web2py] Re: Does represent works with a simple sqlrow?

2011-09-13 Thread Anthony
On Tuesday, September 13, 2011 2:28:50 PM UTC-4, Roberto Perdomo wrote: > > This small detail I think is affecting grid and powergrid not think it > should be solved that way > I agree. He didn't say he was using grid or powergrid, though. Anthony

[web2py] Re: If you have not followed recent changes .....

2011-09-13 Thread Massimo Di Pierro
oops On Sep 13, 11:10 am, DenesL wrote: > I get same screens as Bruno (without jQuery UI version) on Firefox 6. > > errata, change views are follows: > > ### File: views/default/index.html > {{extend 'layout.html'}} > {{=grid}} > > ### File: views/default/manage_tasks.html > {{extend 'layout.html

[web2py] Re: Issues with TAG() encoding and XML().flatten()

2011-09-13 Thread Massimo Di Pierro
AG['h1'](u'öäß'.encode('utf8')).xml() On Sep 13, 11:13 am, "jot.be" wrote: > I searched the ML and found a thread that mentions a similar issue with > TAG() and Unicode: > > http://groups.google.com/group/web2py/browse_thread/thread/a716d6d77b... > > I cannot reproduce the described issues with T

[web2py] Re: modules and plugins

2011-09-13 Thread Massimo Di Pierro
put them in modules/plugin_name.py On Sep 13, 11:22 am, Christopher Baron wrote: > Hi web2py users, > > Let's say I have a lot of functions that I would like to include into > a plugin.  I do not want all of these functions in the controller of > the plugin.  What's the best way to include a larg

[web2py] Re: References and markmin

2011-09-13 Thread Andrew
Hi, where is the markmin manual ? I think I need to read it. Thanks. On Jul 26, 7:14 am, Martin Weissenboeck wrote: > Hi, > > the markmin manual says about references > > Citations and References > > Citations are treated as internal links in html and proper citations in > latex if there is a fi

[web2py] Re: References and markmin

2011-09-13 Thread Massimo Di Pierro
only this http://web2py.com/examples/static/markmin.html On Sep 13, 2:00 pm, Andrew wrote: > Hi, where is the markmin manual ?  I think I need to read it. > Thanks. > > On Jul 26, 7:14 am, Martin Weissenboeck wrote: > > > > > > > > > Hi, > > > the markmin manual says about references > > > Cita

Re: [web2py] Re: .mobile.html disappeared

2011-09-13 Thread Martin Weissenboeck
@Angelo. only 2 commands - great! I have used TortoiseHg (WinXP) and with your help it was simple to use. @Massimo: "I'll be back" said the file - problem solved! Thank you very much! Martin 2011/9/13 Angelo Compagnucci > Hi Martin, > > The first time you download the source you can use: > > h

[web2py] Re: Issues with TAG() encoding and XML().flatten()

2011-09-13 Thread jotbe
Thanks again, but my issue deals with interpreting a html string that should be flatten to Markmin, so I have to pass the string like 'öäß'. The encoding is messed up afterwards: >>> print TAG(u'öäß'.encode('utf8')) öäà >>> print TAG['h1'](u'öäß'.encode('utf8')).xml() öäß >>> print TAG['h1'](u'ö

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-13 Thread António Ramos
I saw months ago comparison between Rails and C# asp.net In this comparison the result indicates that Rails coub be at leat 3 times more productive than C# asp.net if web2py is better than Rails why not repeat the comparison now between WEBPY and c# Asp.net Maybe i can show it to a friend who is

[web2py] php proxy for web2py?

2011-09-13 Thread Massimo Di Pierro
Some people are having problems running web2py on shared hosts. yet they all support web2py. How about a web2py-proxy.php thet acts as proxy for a web2py process running on localhost? I can across this http://sourceforge.net/projects/php-proxy/ But I am not a PHP programmer and it does not seem

[web2py] How to limit items in pulldown?

2011-09-13 Thread Cliff
I think I've seen how to do this, but I can't find it again. Using SQLFORM, I want to limit the the items that appear in reference pulldown to those that apply to the item on the form. In the models I have db.define_table('products', Field('name'), format='%(name)') db.define_table('supp

[web2py] Is there a way for the editor pages to prevent navigation away while the source changes are not saved?

2011-09-13 Thread Rufus
Several times a day I navigate away from an editor page, either with forward or backward buttons, or a link, and sometimes I can lose a considerable amount of changes (and disturb the thought process...) Isn't there a way we can prevent the web page from being navigated away while the edit window

[web2py] Re: How to limit items in pulldown?

2011-09-13 Thread Cliff
Never mind. Found it. In the book. http://www.web2py.com/book/default/chapter/07#Validators Scroll down to IS_IN_DB. On Sep 13, 4:31 pm, Cliff wrote: > I think I've seen how to do this, but I can't find it again. > > Using SQLFORM, I want to limit the the items that appear in reference > pull

[web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Rufus
As others have said, setting response.view='...' to any view will change the view for the controller. In fact, you could go crazy and put a view dictionary in session, e.g. if "my_controller" in session.views.remap: response.view = session.views.remap["my_controller"] each multi-view control

Re: [web2py] Re: Selecting a linked field

2011-09-13 Thread Chris Rowson
Started to rework this. Changed to an inner join (I believe!) as suggested. rows=db(db.data.provider==db.providers.id).select(db.data.lon, db.data.lat, db.providers.name) Chris On Mon, Sep 12, 2011 at 9:54 PM, Chris Rowson wrote: > Thank you both. I shall revisit, replace with a join and pu

[web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Rufus
In fact, view reselect might be nicely handled in a decorator function! Just decorate those functions that require multiple views (like mobile versus normal) It could modify the view name for the correct view file.

Re: [web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Angelo Compagnucci
Yes, it is the method used by the @mobilize decorator! 2011/9/13 Rufus : > In fact, view reselect might be nicely handled in a decorator > function! > > Just decorate those functions that require multiple views (like mobile > versus normal) > It could modify the view name for the correct view file

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Michele Comitini
Vasile I wrote a "bit" not "a lot". The difference is only given by the fact that uwsgi is more configurable. No need to attack me on uwsgi vs scgi, since I even wrote about uwsgi usage (other contributors can confirm that). I asked for comments not for flames, please. Roberto thanks for your cor

[web2py] Suggestion: Input field alignment for decimal and integer

2011-09-13 Thread Omi Chiba
By default, all input field is aligned to left but we all know it should be aligned to right for numbers. We can add the following in the base.css to align them correctly. (Tested with IE and Chrome) Don't you guys think it's better to make this change on the base.css comes from web2py ? input.d

[web2py] Instant Press 2.0

2011-09-13 Thread Martín Mulone
I decide to release a new version of instant press: version 2.0, many changes from the original version 1.0. I think I rewrite almost everything, now is based on the work of powerpack. Yes I know I have to work in documentation and the site

[web2py] Re: python * function in Html Helpers

2011-09-13 Thread Noel Villamor
I got the * and the ** explanations but António is asking about ***. On Sep 14, 5:51 am, Anthony wrote: > In Python, if you have a list or tuple, you can precede it with an "*" and > pass it as an argument to a function, and the function will treat it as if > each item in the list were passed

[web2py] History tables how?

2011-09-13 Thread Michele Comitini
A question which bothers me a lot lately ;-) I know that crud has a nice support for history tables inside the db, but I cannot use crud everywhere. It would be nice if DAL had support for this feature(*) I would like to have web2py take care of the task instead of filling the db with triggers an

[web2py] Re: Instant Press 2.0

2011-09-13 Thread Anthony
Thanks a lot, Martin. This is great. I think Instant Press 1.0 included CKEditor -- have you thought about offering that as an option in Instant Press 2.0 as well? Anthony

Re: [web2py] Re: python * function in Html Helpers

2011-09-13 Thread Jonathan Lundell
On Sep 13, 2011, at 3:11 PM, Noel Villamor wrote: > I got the * and the ** explanations but António is asking about ***. It was just * in the original message. Must have gotten changed in the replies or something.

[web2py] Re: Suggestion: Input field alignment for decimal and integer

2011-09-13 Thread Anthony
I'm not sure. When there is a mixture of text and numeric fields, I think it looks better to keep them all aligned to the left (for example, your "before" screenshot looks better to me -- the 500.00 looks odd all the way on the right). On the other hand, if you have several numbers (with the sam

[web2py] Re: python * function in Html Helpers

2011-09-13 Thread Anthony
On Tuesday, September 13, 2011 6:11:42 PM UTC-4, Noel Villamor wrote: > > > > I got the * and the ** explanations but António is asking about ***. > Where do you see any mention of ***?

[web2py] Re: New Plugin: plugin_ckeditor

2011-09-13 Thread tomt
I found out that I had caused my own problem. This plugin now works as expected on IE7, IE8 and firefox. (I had modified the toolbar to add a few items and remove the scayt_autostartup. I left a comma after the toolbar's closing bracket ], Firefox was ok with this, but IE wasnt') - Tom On Sep 3

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Vasile Ermicioi
> > I asked for comments not for flames, please. by no mean :) it is not in my habits perhaps it is me who asked u for a comparison to uwsgi and didn't like the comparison :) also this sentence from the slice "The configuration we introduce here is useful for heavy loaded production sites." made

[web2py] Re: web2py hosting

2011-09-13 Thread monotasker
I've been working on fluxflex for a couple of weeks now and really like it. There are a couple of odd things, though, about the automated deployment of web2py. The biggest is that I can't seem to get at my files! Fluxflex doesn't support ftp--only git--for uploading and downloading files. That

Re: [web2py] preparing for 1.99.1

2011-09-13 Thread Bruno Rocha
+1 I am going to talk about the same stuff at PyCon Brasil 29 sept http://www.pythonbrasil.org.br/2011/programacao/grade-do-evento/desenvolvimento-web/web2py-a-maturidade-atingida-em-3-anos-de-desenvolvimento On Tue, Sep 13, 2011 at 12:26 PM, Martín Mulone wrote: > Massimo, In the pycon argentin

Re: [web2py] Re: python * function in Html Helpers

2011-09-13 Thread António Ramos
Not only web2py is the best framework but this forum is also the best i have ever participated. One for all and all for one. Thank you ALL for your time António 2011/9/13 Anthony > On Tuesday, September 13, 2011 6:11:42 PM UTC-4, Noel Villamor wrote: >> >> >> >> I got the * and the ** explana

Re: [web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread António Ramos
Can anyone post a simple example of 2 or 3 views and one controller function? thank you 2011/9/13 Angelo Compagnucci > Yes, it is the method used by the @mobilize decorator! > > 2011/9/13 Rufus : > > In fact, view reselect might be nicely handled in a decorator > > function! > > > > Just decora

Re: [web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Bruno Rocha
def index(): if request.args(0) == 'a': response.view = 'default/a.html' if request.args(0) == 'b': response.view = 'default/b.html'

Re: [web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread António Ramos
An example is always the best explanation. And using decorators? Thank you 2011/9/13 Bruno Rocha > def index(): > if request.args(0) == 'a': >response.view = 'default/a.html' > if request.args(0) == 'b': >response.view = 'default/b.html' > > >

Re: [web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Anthony
On Tuesday, September 13, 2011 6:51:02 PM UTC-4, Ramos wrote: > > Can anyone post a simple example of 2 or 3 views and one controller > function? > > thank you > Maybe something like: def myfunc(): views=['view1','view2','view3'] response.view='default/%s.html' % response.args(0) if resp

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Michele Comitini
Vasile no problem :) I hope for instance that the slice can save situations where there is no time for poking around. And having the site operational again, take the right steps. Then who has knowledge, capability and time to do fine tuning, would take the best decision for its environment anyway,

Re: [web2py] Re: References and markmin

2011-09-13 Thread Bruno Rocha
BTW: Nested ul lists is the only missing feature for me now. I am solving it passing my own ``...``:mylist syntax, but it is not easy for end user... On Tue, Sep 13, 2011 at 4:08 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > only this > > http://web2py.com/examples/static/markmin.

[web2py] Re: MongoDb and web2py

2011-09-13 Thread dpreston
My understanding is that pymongo has connection pooling builtin. -> http://api.mongodb.org/python/current/api/pymongo/connection.html Also, it appears that an addition to the cache method described by Massimo enables the use replica sets as well. You still need to handle AutoReconnect exceptions w

[web2py] Re: History tables how?

2011-09-13 Thread Massimo Di Pierro
I think this calls for a new feature. for today the best I can suggest is form = SQLFORM(...).process(onaccept=auth.archive) (notice auth.archive and crud.archive are the same but you can archive without crud). I hate crud. I want it to die but slowly. On Sep 13, 5:16 pm, Michele Comitini wrote

[web2py] Re: Instant Press 2.0

2011-09-13 Thread Massimo Di Pierro
Thanks Martin. This is really useful. On Sep 13, 5:04 pm, Martín Mulone wrote: > I decide to release a new version of instant press: version > 2.0, > many changes from the original version 1.0. I think I rewrite almost > everything, now i

[web2py] Re: Suggestion: Input field alignment for decimal and integer

2011-09-13 Thread Massimo Di Pierro
How about we always display a minimum of two decimals for float/double fields instead of one? On Sep 13, 5:22 pm, Anthony wrote: > I'm not sure. When there is a mixture of text and numeric fields, I think it > looks better to keep them all aligned to the left (for example, your > "before" screens

  1   2   >