Hi Nico,
Thanks! for your support - Here's how I was finally achieved it.
Hardcoded the partial path as below in the controller
dynamicLinechartpath = ("""/ApplicationName/static/charts/""" +
unique_filename )Enter code here...
In the view, you dont need to use the URL parameter -
DL
*PROBLEM WITH .CONTAINS() ON GAE*
The following function does not work on GAE – the line in Red.
*MODEL*
*htmlDB.define_table('Articles',*
*Field('Title'),*
*Field('HtmlBody', 'text', label="Enter Full Article"),*
*Field('Abstract', 'text', label="Enter Abstract"),*
*Field('A
>
> To my defense, I can say that, given that you have been proposing
> alternative solutions, you could have suggested from the start that we
> relax the condition that the wrapper application is a web2py application.
>
I might have, but I didn't know you had that requirement until your last
Hi,
I'm working on legacy databases where boolean are defined as smallint.
The following adapter doesn't work anymore. Could you give me some hint on
how can I write a new one for the "new" pydal.
Thank you
The adapter that was working till now:
# -*- coding: utf-8 -*-
from pydal.adapters im
Hi Rahul,
You're welcome. Remarks: The triple double quotes are for multiline
strings. Just use one pair of double or single quotes. And you can remove
the parentheses, not needed here. Less is more.
Nico
Op woensdag 22 juni 2016 heeft Rahul het volgende
geschreven:
> Hi Nico,
> Thank
Hi,
Is there a way to pass a fieldname variable in a DAL expression other than
the one described in the w2p book :
*db[tablename].insert(**{fieldname:value**})*
when tablename varies in an expression like: *db[tablename].afield* it is
likely that *afield* should do the same
how do I enable *
Should be:
*db[tablename][afield]*
On Wed, Jun 22, 2016 at 11:40 AM, Pierre wrote:
> Hi,
>
> Is there a way to pass a fieldname variable in a DAL expression other than
> the one described in the w2p book :
>
> *db[tablename].insert(**{fieldname:value**})*
>
> when tablename varies in an expres
You use indentation with 4 spaces, standardizing.
You use the same pattern indentation at code.
Em quarta-feira, 22 de junho de 2016 02:14:35 UTC-3, ktesr...@gmail.com
escreveu:
>
> Team,
>
> I keep getting Indentation error whenever i try to add code in the middle
> please help how can i resol
I don't think the GAE datastore supports text search (you can use .contains
on a list:-type field, though).
Anthony
On Wednesday, June 22, 2016 at 3:51:44 AM UTC-4, PRACHI VAKHARIA wrote:
>
>
>
>
>
> *PROBLEM WITH .CONTAINS() ON GAE*
>
> The following function does not work on GAE – the line in
Hi guys, maybe I am missing something in the discussion, but, why not
use plugins to achieve that? you can write the "wrapper" code in a
model, and clients/users can install/remove/update it via the web2py
plugin system.
Greetings.
El 21/06/16 a las 21:53, Dominic Mayers escribió:
Perhaps, y
Yes. That was code copied from my previous code for trial and error code
stubs. Agreed - Less is more.
Rahul.
On Wednesday, June 22, 2016 at 2:58:12 PM UTC+5:30, Nico de Groot wrote:
>
> Hi Rahul,
>
> You're welcome. Remarks: The triple double quotes are for multiline
> strings. Just use one
On Wednesday, June 22, 2016 at 8:28:01 AM UTC-4, Carlos Cesar Caballero
wrote:
>
> Hi guys, maybe I am missing something in the discussion, but, why not use
> plugins to achieve that? you can write the "wrapper" code in a model, and
> clients/users can install/remove/update it via the web2py plu
Sorry, I misread your proposal -- I think you meant that the *wrapper*
would be the plugin. That still has problem #1 below, and if you strictly
follow the plugin naming convention, it won't work, as the model file would
start with "plugin_", which will not necessarily be the first model file to
Yes, he need something like Yii2 modules
(http://www.yiiframework.com/doc-2.0/guide-structure-modules.html) or
Symfony2 bundles
(http://symfony.com/doc/2.0/cookbook/bundles/best_practices.html), I
think that something like that can be a good feature for web2py, not
just for the specific Domini
On Wednesday, June 22, 2016 at 9:38:04 AM UTC-4, Carlos Cesar Caballero
wrote:
>
> Yes, he need something like Yii2 modules (
> http://www.yiiframework.com/doc-2.0/guide-structure-modules.html) or
> Symfony2 bundles (
> http://symfony.com/doc/2.0/cookbook/bundles/best_practices.html),
>
Looks in
No. I was under the impression it doesn't need to be. Does it?
On Tuesday, June 21, 2016 at 10:46:33 PM UTC-4, Anthony wrote:
>
> Is your application compiled?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://cod
On Wednesday, June 22, 2016 at 10:39:23 AM UTC-4, Marty Jones wrote:
>
> No. I was under the impression it doesn't need to be. Does it?
>
No, it doesn't need to be compiled, but it will run faster. Anyway, if
changes aren't showing up, either you are doing some caching, or the code
you're changi
I see. Are there any web2py-specific caching settings I should check?
On Wednesday, June 22, 2016 at 11:18:50 AM UTC-4, Anthony wrote:
>
> On Wednesday, June 22, 2016 at 10:39:23 AM UTC-4, Marty Jones wrote:
>>
>> No. I was under the impression it doesn't need to be. Does it?
>>
>
> No, it doesn't
On Wednesday, June 22, 2016 at 11:43:08 AM UTC-4, Marty Jones wrote:
>
> I see. Are there any web2py-specific caching settings I should check?
>
No, web2py doesn't cache anything by default.
Anthony
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/w
I have an app with following code:
curr_val = db(db.pushes).select().last().kolik
if db(db.pushes.created_on).select().last().created_on.date() <
datetime.datetime.now().date():
db.pushes.insert(kolik=1)
else:
db.pushes.insert(kolik=curr_val+1)
When DB gets to 6428 (l
Title
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To
Is there a good tutorial or example for an editable treeview interacting
with Web2py
For example, I'd like to create an application where the user primarily
interacts with a tree view (e.g. jstree) and can do the following:
- Add a node to the tree
- Delete a node from the tree
- Chang
Hi Web2py developers,
I have a trivial question, but I don't know how to solve. My index.html has
a form with some default parameters. I get the input from users and save it
to sessions and then redirect them to the next page with the same form
having the input data from users. However, I don't
First, note that without specifying an orderby, the order of the records is
not guaranteed to follow any particular rule, so you can't be sure which
record .last() will return.
Second, your current query is returning *all *records from the database,
which involves parsing each record into a Row
On Wednesday, June 22, 2016 at 10:23:54 AM UTC-7, Ed Tate wrote:
>
> Is there a good tutorial or example for an editable treeview interacting
> with Web2py
>
> For example, I'd like to create an application where the user primarily
> interacts with a tree view (e.g. jstree) and can do the follo
On Wednesday, June 22, 2016 at 10:23:56 AM UTC-7, Filip Bogdanovski wrote:
>
> Title
You have 2 easy choices for the standard bootstrap-styled apps (like the
welcome app): replace yourapp/static/images/background.jpg with your
desired background, or tweak yourapp/static/css/web2py-bootstrap
Click to read more
{{=LOAD('default','thread.load',args=[threads[i].id,
threads[i].name],client_side=True)}}
jQuery(document).ready(function(){
jQuery('.one').click(function(){jQuery('.two').slideToggle()});
});
Without having to change the layout or
Hi, this maybe a simple question, but I couldn't find any answer for it:
Is it possible to show the extra fields created in the view?
What I mean is that when I use auth.settings.extra_fields, this creates new
fields for auth_user in the database but it does not show it in the view.
If I want to
LOAD() is a Python helper, so it cannot be called via Javascript in the
browser. However, you can load/refresh a component via Javascript via
$.web2py.component(url, target) (the LOAD() helper simply creates the
target div and adds a data attribute that tells web2py.js to call
$.web2py.componen
Presumably when you defined the fields, you did not set writable=False.
Which view are you talking about -- the registration page? Extra fields
should show up there if writable.
Anthony
On Wednesday, June 22, 2016 at 7:58:45 PM UTC-4, Hans Soflao wrote:
>
> Hi, this maybe a simple question, but
You are right, thanks.
On Wednesday, June 22, 2016 at 8:28:13 PM UTC-4, Anthony wrote:
>
> Presumably when you defined the fields, you did not set writable=False.
> Which view are you talking about -- the registration page? Extra fields
> should show up there if writable.
>
> Anthony
>
> On Wed
Can you expand on your proposal? It's not a big deal if, in the process of
being wrapped, the application becomes a plug-in. Indeed, some thing along
the line of Yii2 modules would be fine, as long as the entire application,
except the part that parses the request, but at the least every thing
I am restating the use case and the concept of wrapper application.
On Wednesday, 22 June 2016 09:00:12 UTC-4, Anthony wrote:
>
>1. I don't think this approach completely satisfies Dominic's
>requirements, as he wants the wrapper to be external to the application
>folder of the wra
> The current idea of Anthony is to directly use wsgihandler as the wrapper
>
No, the "wrapper" would be a callable object, and it can be defined
anywhere. wsgihandler.py is just the entry point -- you could import the
wrapper in wsgihandler.py and then expose it to the web server (as in the
> Regarding the comment that the flexibility to have a separate wrapper is
> not important,
>
Unimportant for the wrapper code to be outside the application folder
because there is a simple approach that should work fine. The installer
creates the /applications/myapp folder and puts a single
I have the impression that you are saying the same thing as me, but with an
emphasis on the "unimportant". I already mentioned that it can be seen as
unimportant in a scenario where we design web2py. I prefer though to
mention that it is useful to consider the use case where we do not really
d
Thanks a lot! That solved my issue.
On Wednesday, June 22, 2016 at 7:48:18 PM UTC+2, Anthony wrote:
>
> First, note that without specifying an orderby, the order of the records
> is not guaranteed to follow any particular rule, so you can't be sure which
> record .last() will return.
>
> Second,
Is the wrapper code inside the wrapped application here?
On Thursday, 23 June 2016 00:14:36 UTC-4, Anthony wrote:
>
> The installer creates the /applications/myapp folder and puts a single
> __wrapper.py file inside the /models folder. The content of this wrapper
> file would be sufficient to
38 matches
Mail list logo