Hi all.
I've made a custom grid single view, that is in the same html page where I
call the complete grid.
When I call for request.env.http_referer for going back to the previous
page I have inside the current page, not the previous one, the same html
page but with the grid.
For example I make
I'm creating a form that is not based on a database table. I understand I
can add a default to a field created with SQLFORM.factory, for example:
form = SQLFORM.factory(
Field('name', 'string', default='John'),
...
is it possible to specify a default after the above statemen
first and foremost: did you check what your browser sends as the referrer
header ?
On Sunday, December 29, 2013 10:26:43 AM UTC+1, Gael Princivalle wrote:
>
> Hi all.
>
> I've made a custom grid single view, that is in the same html page where I
> call the complete grid.
> When I call for reques
Il 28/12/13 22:20, Diego Tostes ha scritto:
> here is my code:
>
> http://pastebin.com/qh5AV8Xh
>
> but the download don't start when i access this controler.
I would try something like this code for the csv file format:
http://web2py.com/books/default/chapter/29/10/services#CSV
M.
--
Resour
Goog question.
In fact initialy referer is my previous page (http:
//.../default/products_listing?keywords=od), and after when the browser load
js and css files referer is my single view page (http:
//.../default/products_listing/view/products/376?keywords=od).
I think a way to resolve it is mak
It is possible.
On Sunday, 29 December 2013 04:00:16 UTC-6, User wrote:
>
> I'm creating a form that is not based on a database table. I understand I
> can add a default to a field created with SQLFORM.factory, for example:
>
> form = SQLFORM.factory(
> Field('name', 'string', defaul
In one of my model files I have the following setting:
auth.settings.login_next = URL('cms', 'default', 'my_login')
my_login() takes care of setting defaults depending on who logs in and then
redirect to cms/default/index
@auth.requires_login()
def my_login():
if auth.has_membership(ROOT):
You can do:
form = SQLFORM.factory(
Field('name', 'string'), ...)
form.vars.name = 'John'
form.process()
Note, you have to set form.vars before calling form.process().
Anthony
On Sunday, December 29, 2013 5:00:16 AM UTC-5, User wrote:
>
> I'm creating a form that is not based on a datab
You are attempting to return a pyrtf.Document object, but instead you must
stream a file or file-like object. You have to render the document to a
file-like object and use response.stream():
def generate_doc():
from gluon.contrib.pyrtf import *
import cStringIO
doc = Documen
your problem is architectural: you just proved that you can't rely on the
referrer header to make the app behave like you'd wish.
Save the "back" url in a session variable and use that one instead ^_^
On Sunday, December 29, 2013 4:02:48 PM UTC+1, Gael Princivalle wrote:
>
> Goog question.
>
> I
just to clarify, my problem is that html tags in my input text area is just
rendered as tags, naturally because the field is classified as text and
nothing else. I need to render the html elements when displaying text.
On Fri, Dec 27, 2013 at 10:01 PM, Jonas Fredriksson wrote:
> I tried ckeditor
Any news here? I'm having the same issue trying to use gluino with flask
using pip as well as install from the git repository using python.
Thanks in advance!
Am Donnerstag, 13. Juni 2013 22:23:39 UTC+2 schrieb Massimo Di Pierro:
>
> Guino needs to be updated. Please hold on one more week.
>
> O
How can I access the admin app in remote (non localhost) server, when hosting
via gevent?
--
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 th
How can I access the admin app in remote (non localhost) server, when hosting
via gevent?
--
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 th
Simon, this is helpful. Thank you.
On Friday, December 27, 2013 8:24:27 PM UTC-8, Simon Ashley wrote:
>
>
>1. We just do it in the controller as a function . Try an .insert but
>.bulk_insert should be fine for individual records.
>2. You may need a path to find the file.
>
> Fo
if that the case please use XML() function on your view.
e.g.
{{for i, row in enumerate(rows):}}
{{=DIV(XML(T(row.table_field), sanitize = True) ) }}
{{pass}}
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
another way around is define it on the represent for your table text field.
e.g.
table.table_field.represent = lambda v, r: XML(v, sanitize = True)
the difference for previous code in this one you can use it for grid
without define it again on your view.
if you use string type field, yet it can
hi,
i'm trying to move the ckeditor function from models/db.py into
modules/advanced_editor.py but it return an error.
Traceback (most recent call last):
File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, in
restricted
File
"C:/Users/sugizo/Desktop/web2py/2.8.2/applic
Traceback (most recent call last):
File "C:\web2py-m\gluon\restricted.py", line 217, in restricted
exec ccode in environment
File "C:/web2py-m/applications/ipay\compiled\models.db.py", line 69, in
File "C:\web2py-m\gluon\dal.py", line 7935, in define_table
table = self.lazy_define
Hello Max,
The web2py online book shows its a 6th edition, pre-release version but on
clicking "download the pdf version" from dropbox, its the 5th edition that
gets downloaded.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
I have a requirement were i need to convert a date from a query to another
format as follows:
db(db.mytable).select(db.mytable.id,
datetime.strptime(str(db.mytable.startDate),
'%Y-%m-%d').strftime('%d/%m/%Y'))
The problem is am getting an error
ValueError: time data 'mytable.startDate' does no
21 matches
Mail list logo