Re: [web2py] Re: web2py 2.0.2 is out

2012-09-02 Thread Annet
Hi Alec, Thanks for providing me with this code. Also will need to add in proper success ones as well. I'll get to it within > a week then send a pull request I'll look forward to that. Kind regards, Annet --

[web2py] Re: Buttons not styled the Bootstrap way.

2012-09-02 Thread Annet
> Again, setting formstyle='bootstrap' might take care of that. I didn't want to repeat myself, I searched the group and read Massimo's announcement https://groups.google.com/forum/?fromgroups=#!topic/web2py/tmM5VbYcPrQ but couldn't find how the apply bootstrap form styles in web2py :-( Kin

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Anthony
General warning: upgrading the framework does not update any of the framework specific files in the application folder, such as appadmin.py, appadmin.html, web2py_ajax.html, web2py.js, and the generic views, so when you upgrade, you may have to manually copy some of those files if they have cha

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Annet
> 2.0.1 was never labeled as stable. > I know, but the application I created did work after updating to newer versions so I did bother to create it again in a stable version. I now created a new application in 2.0.6 an moved all my code to the new application, which solved the problem. Kin

[web2py] Re: need a simple wiki...

2012-09-02 Thread Andrew W
Hi Massimo, Some questions on auth.wiki, in anticipation of some details in the book. Have you finalised the syntax for adding components ? How do I embed media eg images? Do I follow the markmin reference doc, or is it a combo of the two: I've added the media to the page [[some image @5/s

Re: [web2py] Re: Unit tests

2012-09-02 Thread Anthony
On Monday, September 3, 2012 12:38:43 AM UTC-4, viniciusban wrote: > > So, could we consider webclient the official way to unittest web2py apps? > I think webclient.py would be considered more of a "functional" or "integration" testing tool, as it operates by making HTTP requests and checking th

Re: [web2py] Using GAE Launcher - a beginner's question

2012-09-02 Thread Andy W
That fixed it - many thanks! On Sunday, September 2, 2012 4:11:24 PM UTC+4, Jan-Karel Visser wrote: > > put a # in front off - datastore_admin in the yaml and off you go :) > > > 2012/9/2 Andy W > > >> I am experimenting with web2py and GAE. web2py is running fine on my >> local machine (Windows

Re: [web2py] Re: How to call controller function upon onClick from html?

2012-09-02 Thread Amit
Thanks Anthony :) Regards, Amit On Fri, Aug 31, 2012 at 4:47 PM, Anthony wrote: > On Thursday, August 30, 2012 10:44:51 PM UTC-4, Amit wrote: >> >> As I told you I have created my own custom html without extending >> layout.html. > > > "I have created my own custom html" != "I have not loaded j

Re: [web2py] Classes in markmin

2012-09-02 Thread Bruno Rocha
There is markmin2pdf and markmin2html on gluon.contrib https://github.com/web2py/web2py/tree/master/gluon/contrib/markmin --

[web2py] Classes in markmin

2012-09-02 Thread vinicius...@gmail.com
I'm in charge to find a good solution to document some projects and I faced markdown, reST and markmin. I found this thread from about 1 year ago: https://groups.google.com/forum/?fromgroups=#!topic/web2py/driLl6I8K64 Comparing reST with markmin, I observed reST creates to encapsulate lists

Re: [web2py] Re: Unit tests

2012-09-02 Thread vinicius...@gmail.com
So, could we consider webclient the official way to unittest web2py apps? On 09/03/2012 12:41 AM, Massimo Di Pierro wrote: Now you also have gluon/contrib/webclient.py On Sunday, 2 September 2012 21:57:47 UTC-5, viniciusban wrote: Hi guys. I'd like to know if this still is the recomm

[web2py] Re: Unit tests

2012-09-02 Thread Massimo Di Pierro
Now you also have gluon/contrib/webclient.py On Sunday, 2 September 2012 21:57:47 UTC-5, viniciusban wrote: > > Hi guys. > > I'd like to know if this still is the recommended way to write unit > tests in Web2py: http://www.web2py.com/AlterEgo/default/show/260 > > -- > Vinicius Assef > --

[web2py] Re: Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread Massimo Di Pierro
No it shouldn't. On Sunday, 2 September 2012 19:18:25 UTC-5, Anthony wrote: > > Though that shouldn't be adding 2-3Mb per request. > > On Sunday, September 2, 2012 6:49:51 PM UTC-4, Massimo Di Pierro wrote: >> >> group_id=auth.add_group('manager', 'can access the manage action') >> auth.add_permis

[web2py] Re: 2.0.6 on GAE - Routing issues and ticket unrecoverable

2012-09-02 Thread Massimo Di Pierro
Normally admin is disabled in app.yaml although that does not see to be your problem. If you get an unrecoverable thicket there should be a log in gae log. Please let us know what you see. On Sunday, 2 September 2012 18:11:09 UTC-5, Udi Milo wrote: > > Hi, > > Decided to start fresh a new proje

Re: [web2py] Re: Global formstyle configuration

2012-09-02 Thread Marin Pranjić
Current.response.formstyle maybe? Marin On Sep 2, 2012 9:11 PM, "Massimo Di Pierro" wrote: That would affect all the apps at once. On Sunday, 2 September 2012 10:34:29 UTC-5, Anthony wrote: > > Are there other examples of potenti... --

[web2py] Re: Unit tests

2012-09-02 Thread Anthony
Regarding unit testing in web2py, I think there are two basic approaches. One approach is to slightly modify the way you write and call the unit test file, and rely on web2py to build its environment in the usual way. This method is described in the post you referenced ( http://web2py.com/AlterE

[web2py] Unit tests

2012-09-02 Thread vinicius...@gmail.com
Hi guys. I'd like to know if this still is the recommended way to write unit tests in Web2py: http://www.web2py.com/AlterEgo/default/show/260 -- Vinicius Assef --

Re: [web2py] Re: Global formstyle configuration

2012-09-02 Thread vinicius...@gmail.com
Yes, Bruno. But wouldn't it be better if it was just a config? On 09/02/2012 09:09 PM, Bruno Rocha wrote: This should work.. # On models class SQLFORM(SQLFORM): ''' Customized SQLFORM ''' def __init__(self, *args, **kwargs): kwargs.setdefault("formstyle", "divs")

[web2py] Re: Styling forms

2012-09-02 Thread Anthony
On Sunday, September 2, 2012 4:50:32 PM UTC-4, Pystar wrote: > > Even when you do SQLFORM(..., formstyle='bootstrap') , the auto > generated forms still come out looking very terrible. If that's the case, then we should fix formstyle='bootstrap' -- the whole purpose of it is to give us nice B

[web2py] Re: Global formstyle configuration

2012-09-02 Thread Anthony
On Sunday, September 2, 2012 3:11:16 PM UTC-4, Massimo Di Pierro wrote: > > That would affect all the apps at once. > Oh, yeah, good point. Probably not the best approach. Anthony --

Re: [web2py] Re: web2py 2.0.6 and JqueryUI

2012-09-02 Thread Kevin Miller
I cleared the cache and refreshed the page and I got the same result. That line was from a javascript file that I created. It was in a method that I called when a linked was clicked. On Sun, Sep 2, 2012 at 1:42 PM, Niphlod wrote: > could you please try simply hitting ctrl+f5 to refresh the cache

[web2py] Re: Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread Anthony
Though that shouldn't be adding 2-3Mb per request. On Sunday, September 2, 2012 6:49:51 PM UTC-4, Massimo Di Pierro wrote: > > group_id=auth.add_group('manager', 'can access the manage action') > auth.add_permission(group_id, 'access to manage') > auth.add_permission(group_id, 'create', db, 0) > a

Re: [web2py] Re: Global formstyle configuration

2012-09-02 Thread Bruno Rocha
This should work.. # On models class SQLFORM(SQLFORM): ''' Customized SQLFORM ''' def __init__(self, *args, **kwargs): kwargs.setdefault("formstyle", "divs") super(MySQLFORM, self).__init__(*args, **kwargs) On Sun, Sep 2, 2012 at 8:11 PM, vinicius...@gmail.com wrote:

Re: [web2py] Re: Global formstyle configuration

2012-09-02 Thread vinicius...@gmail.com
Anthony, another one would be hide_error. These are settings affect app style of visualization and user interaction. So, it makes sense to be defined once and overriden when necessary. -- Vinicius Assef On 09/02/2012 12:34 PM, Anthony wrote: Are there other examples of potential global con

[web2py] 2.0.6 on GAE - Routing issues and ticket unrecoverable

2012-09-02 Thread Udi Milo
Hi, Decided to start fresh a new project with 2.0.6 on GAE. downloaded it, unzipped, created app.yaml, created routes.py ran it in PyDev and welcome comes out fine. I cannot go to admin app for some reason, and every error is ticket unrecoverable. Any idea how to debug it or solutions? --

[web2py] Re: Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread Massimo Di Pierro
group_id=auth.add_group('manager', 'can access the manage action') auth.add_permission(group_id, 'access to manage') auth.add_permission(group_id, 'create', db, 0) auth.add_permission(group_id, 'read', db, 0) auth.add_permission(group_id, 'delete', db, 0) auth.add_permission(group_id, 'update', db,

Re: [web2py] Changing the HTML attribute of fields generated by SQLFORM

2012-09-02 Thread Dadepo Aderemi
Hahaha! mysubmitbutton["_class"] = "*btn btn-primary*" ;) Spot on! Thanks @rochacbruno On Sunday, September 2, 2012 11:45:25 AM UTC-7, rochacbruno wrote: > > Server side DOM. > > An example: > > mysubmitbutton = form.elements('input[type=submit]')[0] > mysubmitbutton["_value"] = "GO" > mysubmi

[web2py] Re: login and captcha

2012-09-02 Thread Osman Masood
Sorry for the late response. Try this: if session.logincount != 1: auth.settings.login_captcha = Recaptcha(...) form=auth.login() On Thursday, March 1, 2012 6:18:02 AM UTC-8, mweissen wrote: > > Hi, > > I want to do the following. > - login using auth.login > - if login fails captcha should b

[web2py] Re: Ajax and Auth API

2012-09-02 Thread Osman Masood
I know this is kind of old, but this post explains how to do AJAX login/register/forgot password in web2py without LOAD: AJAX auth functions: login, register, and retrieve_password (reset_password) in web2py It's pretty easy to see how to extend the functionalit

[web2py] Re: Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread entropist
from gluon.tools import Crud crud = Crud(db) auth.settings.login_next=URL('Gallery') auth.settings.logout_next=URL('index') auth.settings.register_next = URL('Gallery') crud.settings.delete_next = URL('Gallery') group_id=auth.add_group('manager', 'can access the manage action') auth.add_permission

[web2py] Re: Styling forms

2012-09-02 Thread Massimo Di Pierro
I find that lots of the problems are caused by this statement in bootstrap.min.css -webkit-appearance:button Try remove it. I am not sure why it is there. On Sunday, 2 September 2012 15:50:32 UTC-5, Pystar wrote: > > Even when you do SQLFORM(..., formstyle='bootstrap') , the auto > generated

[web2py] Code syntax highlighting in a post

2012-09-02 Thread shartha
Could one of the administrators please turn on the code syntax highlighting as explained in this link ? Or if that's been done already, could somebody please explain how that can be done? Thanks! --

[web2py] Re: Styling forms

2012-09-02 Thread Pystar
Even when you do SQLFORM(..., formstyle='bootstrap') , the auto generated forms still come out looking very terrible. so I would advice that you do {{=form.custom.begin}} and {{=form.custom.end}} to really tweak your form to your hearts desire. On Sunday, September 2, 2012 12:57:54 PM UTC+1, A

[web2py] Re: Scaling Web2py

2012-09-02 Thread Massimo Di Pierro
So... in trunk we have an experimental solution to the session issue proposed by Anthony. We allow disabling of session logic using routes.py. routes_in = [('/welcome','/welcome',dict(web2py_disable_session=False)] This solution many or many not stay in this form. We are testing it and discussi

[web2py] Re: Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread Niphlod
this seems not to be the problem. If you see the db getting larger for a particular requested page, please post the code relative to the function called in the controller to generate the page. --

[web2py] Re: Global formstyle configuration

2012-09-02 Thread Massimo Di Pierro
That would affect all the apps at once. On Sunday, 2 September 2012 10:34:29 UTC-5, Anthony wrote: > > Are there other examples of potential global configs? For forms, perhaps > we could set the default via a "formstyle" class attribute, which you could > then change once in your code. > > Antho

[web2py] Re: Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread entropist
if not request.env.web2py_runtime_gae: db = DAL('sqlite://storage.db') else: db = DAL('google:datastore') session.connect(request, response, db = db) response.generic_patterns = ['*'] if request.is_local else [] from gluon.tools import Auth, Crud, Service, PluginManager, prettydate aut

Re: [web2py] Changing the HTML attribute of fields generated by SQLFORM

2012-09-02 Thread Bruno Rocha
Server side DOM. An example: mysubmitbutton = form.elements('input[type=submit]')[0] mysubmitbutton["_value"] = "GO" mysubmitbutton["_class"] = "btn btn-primary" Other example, if you want to change the class of all "input" objects. inputs = form.elements("input') for input in inputs: input

[web2py] Re: web2py 2.0.6 and JqueryUI

2012-09-02 Thread Niphlod
could you please try simply hitting ctrl+f5 to refresh the cached files and see if that errors goes away ? BTW, that line comes from what js file ? On Sunday, September 2, 2012 7:43:14 PM UTC+2, dundee wrote: > > Hi all, > > I have converted my app from web2py 2.0 to use web2py 2.0.6. Everything

[web2py] Re: Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread Anthony
Well, you must be doing something that's inserting data into the db on every request. Hard to say what that could be without seeing the code. Anthony On Sunday, September 2, 2012 11:50:39 AM UTC-4, entropist wrote: > > Hello, I've just started with web2py and I'm trying to learn as much as I >

[web2py] Unusual behavior of storage.db/storage.sqlite file

2012-09-02 Thread entropist
Hello, I've just started with web2py and I'm trying to learn as much as I can to build functional web applications. I'm almost done with my first web2py app, it's a basic photo gallery where one can upload photos visible to other users, with functionalities like comment and like along with photo

[web2py] Changing the HTML attribute of fields generated by SQLFORM

2012-09-02 Thread Dadepo Aderemi
Dear All, How would HTML attributes like id, class etc be added to a form generated using the SQLFORM? I know with FORM, you can easily use the attribute name prepended with an underscore "_" to set the properties. How can this be done with SQLFORM? Specifically I am looking at adding an HTML c

[web2py] web2py 2.0.6 and JqueryUI

2012-09-02 Thread Kevin Miller
Hi all, I have converted my app from web2py 2.0 to use web2py 2.0.6. Everything is working fine except my jqueryUI dialog. I have used it all the 2.0.x versions and it worked fine. I am getting this error in firebug: TypeError: i is undefined ...){if(typeof l!=="number")return j["outer"+g].call(

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Marin Pranjić
More likely it is an appadmin issue. You should update appadmin.py and see if problem goes away On Sun, Sep 2, 2012 at 7:23 PM, Marin Pranjić wrote: > 2.0.1 was never labeled as stable. > So you were using trunk when you created an app? > Can you try fake_migrate, maybe table definitions are some

Re: [web2py] Scaling Web2py

2012-09-02 Thread Ricardo Pedroso
On Sat, Sep 1, 2012 at 5:48 PM, Webtechie wrote: > > I would like to use web2py for a web application which has large databases > (really large) , expects high volume of traffic . Are there any ways to make > web2py apps run faster ? (like really faster ) , (looking for solutions > apart from pool

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Marin Pranjić
2.0.1 was never labeled as stable. So you were using trunk when you created an app? Can you try fake_migrate, maybe table definitions are somehow corrupt. Marin On Sun, Sep 2, 2012 at 7:04 PM, Annet wrote: > >> It does for me. Are you using an old app? > > > An app created in 2.0.1 When I create

[web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Annet
> It does for me. Are you using an old app? > An app created in 2.0.1 When I create a new app in 2.0.6 the problem doesn't exist. Kind regards, Annet --

Re: [web2py] Re: SQLFORM.grid and export; some proposals

2012-09-02 Thread Martin Weissenboeck
ok! 2012/9/2 Massimo Di Pierro > Can you send me a patch and open a ticket about ignored fields? Thanks. > > > On Sunday, 2 September 2012 02:25:56 UTC-5, mweissen wrote: >> >> I want to use the export-feature of SQLFORM.grid. There are some >> proposals and questions: >> >>

[web2py] Re: Global formstyle configuration

2012-09-02 Thread Anthony
Are there other examples of potential global configs? For forms, perhaps we could set the default via a "formstyle" class attribute, which you could then change once in your code. Anthony On Sunday, September 2, 2012 11:27:42 AM UTC-4, viniciusban wrote: > > I think it would be nice to have som

[web2py] Global formstyle configuration

2012-09-02 Thread vinicius...@gmail.com
I think it would be nice to have some global configs in web2py. One of them is formstyle. It's unpleasant to define formstyle in every FORM definition. This formstyle config could come in db.py like Auth configs. So, once defined my app formstyle, it should be used as default. But in a specific

[web2py] Re: web2py book on github

2012-09-02 Thread Anthony
We also need to document the new formstyle='bootstrap' option as well as the new callable formstyle option that takes the form and fields and builds the entire form DOM. Anthony On Saturday, September 1, 2012 5:37:11 PM UTC-4, Massimo Di Pierro wrote: > > These features are now documented in th

[web2py] Re: Buttons not styled the Bootstrap way.

2012-09-02 Thread Anthony
Again, setting formstyle='bootstrap' might take care of that. Anthony On Sunday, September 2, 2012 1:53:41 AM UTC-4, Annet wrote: > > In a controller I have the following function: > > def subCreate(): > form=SQLFORM.factory( > > Field('subClass',type='integer',requires=IS_IN_SET([1,2,3]

Re: [web2py] Search Database field auto complete

2012-09-02 Thread Anthony
Note, there have been some problems with the auto-complete widget UI in Internet Explorer. As an alternative, check out http://web2py.com/books/default/chapter/29/11#Auto-completion for the general logic for building auto-complete functionality. It should also be easy to incorporate a more full

[web2py] Re: Scaling Web2py

2012-09-02 Thread Anthony
> > I think it'd be nice to have session created explicitly inside a "WITH" > statement block so that users create sessions only when they want. But I > don't know if it's feasible because I suspect sessions are created > automatically and passed into the exec environment, and it appears sessi

Re: [web2py] Search Database field auto complete

2012-09-02 Thread vinicius...@gmail.com
http://web2py.com/books/default/chapter/29/07#Autocomplete-widget On 09/02/2012 11:05 AM, BlueShadow wrote: Hi, I got huge database with a name field... I have to search for individual lines quite often. So I wanted to make a search box for it. If Christmas was today I would love it it would b

[web2py] Search Database field auto complete

2012-09-02 Thread BlueShadow
Hi, I got huge database with a name field... I have to search for individual lines quite often. So I wanted to make a search box for it. If Christmas was today I would love it it would be somewhat similar like the google search: like while your typing it shows you the possibilities with those

[web2py] Re: Scaling Web2py

2012-09-02 Thread Massimo Di Pierro
I promise you that 2.1.0 (in one or two weeks) will adress the first issue as I have from Anthony that allow you to specify which models to run. About the second issue. Sessions are only locked per user not globally in order to prevent inconsistent session states. You can session._unlock(respon

[web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Massimo Di Pierro
It does for me. Are you using an old app? On Sunday, 2 September 2012 03:23:33 UTC-5, Annet wrote: > > After upgrading to 2.0.6 Database Administration (appadmin) no longer > shows the available Databases and Tables. > > > Kind regards, > > Annet. > --

[web2py] Re: SQLFORM.grid and export; some proposals

2012-09-02 Thread Massimo Di Pierro
Can you send me a patch and open a ticket about ignored fields? Thanks. On Sunday, 2 September 2012 02:25:56 UTC-5, mweissen wrote: > > I want to use the export-feature of SQLFORM.grid. There are some proposals > and questions: > > > ---

[web2py] Re: web2py online book links point to 404 pages

2012-09-02 Thread Massimo Di Pierro
Sorry. I did not add the references yet. I can automate the detection of the missing references. On Sunday, 2 September 2012 01:45:35 UTC-5, Jemes Hsu wrote: > > > http://web2py.com/books/default/chapter/29/06 > > The links to a number databases point to 404 error, for example IMAP, > PyMongo, S

[web2py] Re: Buttons not styled the Bootstrap way.

2012-09-02 Thread Massimo Di Pierro
Why are not form buttons styled automatically by the CSS? On Sunday, 2 September 2012 00:53:41 UTC-5, Annet wrote: > > In a controller I have the following function: > > def subCreate(): > form=SQLFORM.factory( > > Field('subClass',type='integer',requires=IS_IN_SET([1,2,3],labels=['Organi

Re: [web2py] Re: web2py book on github

2012-09-02 Thread Massimo Di Pierro
On Sunday, 2 September 2012 00:21:47 UTC-5, Andrew W wrote: > > Does auth.wiki need to be included in the doco todo list ? If plugin_wiki > is to be phased out does the Components chapter need updating to refer to > auth.wiki? For me the first order to do list if the CHANGELOG. I Just po

[web2py] Re: Scaling Web2py

2012-09-02 Thread VP
I think it'd be nice to have session created explicitly inside a "WITH" statement block so that users create sessions only when they want. But I don't know if it's feasible because I suspect sessions are created automatically and passed into the exec environment, and it appears sessions are us

Re: [web2py] Using GAE Launcher - a beginner's question

2012-09-02 Thread Jan-Karel Visser
put a # in front off - datastore_admin in the yaml and off you go :) 2012/9/2 Andy W > I am experimenting with web2py and GAE. web2py is running fine on my local > machine (Windows 7) but I cannot get even the default Welcome app to run on > the GAE SDK. > > Here are the detailed steps I have t

[web2py] Using GAE Launcher - a beginner's question

2012-09-02 Thread Andy W
I am experimenting with web2py and GAE. web2py is running fine on my local machine (Windows 7) but I cannot get even the default Welcome app to run on the GAE SDK. Here are the detailed steps I have taken: 1. Downloaded web2py (v 2.0.6) and unpacked to E:\web2py 2. Run locally with the web2py ro

[web2py] web2py online book links point to 404 pages

2012-09-02 Thread Jemes Hsu
http://web2py.com/books/default/chapter/29/06 The links to a number databases point to 404 error, for example IMAP, PyMongo, SAPDB I know the book is on Github, even, not sure what are the correct links should be. --

[web2py] Re: Styling forms

2012-09-02 Thread Anthony
Does: SQLFORM(..., formstyle='bootstrap') Do what you want? Anthony On Sunday, September 2, 2012 3:53:20 AM UTC-4, Annet wrote: > > This is a form in bootstrap: > > > > Email > > > > > ... > > > This is my form in web2py: > > action=""> > > >for=

Re: [web2py] XML Webservice

2012-09-02 Thread hasan alnator
Dear ALec , when i go to the link i gave you before , i can see some XML data but i dont understand what is the viewing problem you are talking about ? and why wold a table filed interrupter Viewing as XML as long as i am returning an object that has all the date ? Best Regards, On Sun, Sep 2,

Re: [web2py] Re: web2py 2.0.2 is out

2012-09-02 Thread Alec Taylor
This is what I have for the moment, but I plan to implement this properly using the variables from gluon.tools; consider this a PoC: {{if response.flash:}} {{if 'errors' in response.flash:}} × {{=response.flash}} {{else:

Re: [web2py] XML Webservice

2012-09-02 Thread Alec Taylor
Hmm, try lower-case 'description'. Otherwise not sure what's causing the XML viewer problem. Also nowadays JSON is prefered over XML, as it's much less verbose; thus has a much lower overhead On Sun, Sep 2, 2012 at 7:39 PM, hasan alnator wrote: > Dear Alec , > > What Do you mean with preproces

Re: [web2py] XML Webservice

2012-09-02 Thread hasan alnator
Dear Alec , What Do you mean with preprocessing ? this is my db.py : # -*- coding: utf-8 -*- # ## This scaffolding model makes your app work on Google App Engine too ## File is released under public domain and you can use

Re: [web2py] XML Webservice

2012-09-02 Thread Alec Taylor
Yeah, that's right. Sounds like you'll need to do some preprocessing before posting it out though. Share your models.py and we'll work from there On Sun, Sep 2, 2012 at 6:22 PM, hasan alnator wrote: > Dear Alec , > > Is the the right way : > > in the controller i added >> > > def call(): > s

[web2py] available Databases and Tables empty in 2.0.6

2012-09-02 Thread Annet
After upgrading to 2.0.6 Database Administration (appadmin) no longer shows the available Databases and Tables. Kind regards, Annet. --

Re: [web2py] XML Webservice

2012-09-02 Thread hasan alnator
Dear Alec , Is the the right way : in the controller i added >> def call(): session.forget() return service() @service.run def xmlservice(): solutoins = db().select(db.solutions.ALL) return locals() then i get this : http://gardeniatelco.com/call/xml/xmlservice On Sun, Sep

Re: [web2py] XML Webservice

2012-09-02 Thread Alec Taylor
Just add the @service.xml decorator to your controller. Tutorial: https://web2py.com/books/default/chapter/29/10 On Sun, Sep 2, 2012 at 5:57 PM, Hassan Alnatour wrote: > Dear ALL, > > I want to create a web service that returns an xml of the > some recorders in a table ? > > Best Regards, > >

[web2py] XML Webservice

2012-09-02 Thread Hassan Alnatour
Dear ALL, I want to create a web service that returns an xml of the some recorders in a table ? Best Regards, --

[web2py] Styling forms

2012-09-02 Thread Annet
This is a form in bootstrap: Email ... This is my form in web2py: Subclass ... Is there a way to add class="control-group" to all __row divs class="control-label" to all labels class="controls" to all w2p_ divs K

[web2py] SQLFORM.grid and export; some proposals

2012-09-02 Thread Martin Weissenboeck
I want to use the export-feature of SQLFORM.grid. There are some proposals and questions: --- (1) Using the parameter *csv=False* or *csv=True* I can only choose no exports or all export formats. But t

[web2py] buttons=['submit','reset','cancel'] and INPUT helpers

2012-09-02 Thread Annet
The signatyre for the SQLFORM constructor has an attribute buttons = ['submit'] At the moment I add a cancel and/or reset button to my forms this way: form=SQLFORM.factory(..) addReserButton(form) addCancelButton(form) def addCancelButton(form): form[0][-1][1].append(INPUT(_type="