I have this in index.html before {{extend 'layout.html'}}
{{
response.title='My Site Name'
response.meta.keywords='web2py web development Denver'
response.meta.description='my description'
response.meta.author='my name'
}}
Most of the content of the page is in layout.html
#---
Did anyone had any success on inserting metadata on layout or SEO
( http://www.web2pyslices.com/slice/show/2048/simple-seo) plugins? It
doesn't seem to work at all.
On Friday, January 3, 2014 at 9:25:14 AM UTC-5, Gael Princivalle wrote:
>
> Hi Bruno.
>
> In a same page where you make translatio
Doing this below, I can change the button color. How would I change the
background string or textarea color? Below don't seem to work. Thanks in
advance
in db.py
db.define_table("contact",
Field("your_name", "string", label='Name', ),
Field("your_email",
label='
Very interesting topic guys. Wonder how we make a web2py app downloadable
to google playstore or iphone App Store? Does Kivi or cordova both does
that?
On Saturday, January 30, 2016 at 11:56:18 AM UTC-5, eric cuver wrote:
>
> You create your application mobile friendly
>
> for kivy
>
> After ins
in db.py
db.define_table("profile_picture",
Field('filename','upload',default = None,comment='Enter
your pic',uploadfolder=os.path.join(request.folder,
'uploads')),auth.signature)
in default.py
form=SQLFORM.factory(Field('filename','upload',uploadfolder=os.path.join(request.f
I have the same question. But for DAL in general. How to limit the string
or text?
On Monday, July 25, 2016 at 5:00:49 PM UTC-4, icodk wrote:
>
> How can I change the input field size (what is visible to the user) of
> SQLFORM.grid auto generated Edit/New forms.
> Tried with length=50 but the fi
On that note, how do we customize the flash? For example, lets say we want
a much larger and brighter flash with css rule (brighter color), or have to
display as soon as user log in on the center of the screen as an
advertisement?
On Monday, July 11, 2016 at 4:49:08 AM UTC-4, Massimiliano wrote
Thank you Anthony. See attached. Just want to change the wording of it but
keep everything same and working the way they are.
On Wednesday, June 1, 2016 at 7:55:19 AM UTC-4, Anthony wrote:
>
> On Wednesday, June 1, 2016 at 2:13:45 AM UTC-4, rajjm...@gmail.com
> wrote:
>>
>> Yes. you are right
Yes. you are right. Just curious to know where Profile is defined like in
which html file? I can't seem to find that.
On Sunday, May 22, 2016 at 2:49:01 AM UTC-4, pbreit wrote:
>
> That's the type of thing that it seems like it should be in the app, not
> the framework?
>
--
Resources:
- http
I just want to change the name from Profile to Register. I have to do all
these or there is another work around?
On Sunday, December 27, 2015 at 2:00:38 AM UTC-5, Massimo Di Pierro wrote:
>
> Edit views/layout.html and remove {{=auth.navbar()}} which is
> responsible for drawing that part
I just looped through the entire array and added those strings with ',' and
displayed. Works fine. Thank you Anthony.
On Saturday, May 14, 2016 at 2:17:47 PM UTC-4, Anthony wrote:
>
>
>
> On Saturday, May 14, 2016 at 12:06:11 PM UTC-4, rajjm...@gmail.com
> wrote:
>>
>> Yes. in my case with requ
Yes. in my case with request.args(0) into db.Post is a row object but since
its list:string I see a bracket around. So, question Anthony. How do we
take the html tag element out of row object. There are no examples in the
book about how to do that. We have to live with it?
On Thursday, May 12,
Notice that render() option doesn't always shows up.
my_post = db.Post(request.args(0)). render (represent that field) is not
available even though its
But for example:
posts = db().select(db.Post.all). Its also a
and I can do render().
But we still have list string in my_post like you ha
worked! thank you Anthony/Dave.
On Monday, May 9, 2016 at 6:13:29 PM UTC-4, Dave S wrote:
>
> On Monday, May 9, 2016 at 1:34:31 PM UTC-7, rajjm...@gmail.com wrote:
>>
>> Interesting!
>>
>> So, if I do:
>>
>> a = my_table.render()
>>
>> I get
>>
>> a is >
>>
>> How do I now access individual ele
Interesting!
So, if I do:
a = my_table.render()
I get
a is >
How do I now access individual elements? like Rows[0],
Rows[1]..Rows[10].etc? because a[0] doesn't work.
On Monday, May 9, 2016 at 3:53:48 PM UTC-4, Anthony wrote:
>
> This has nothing to do with the IS_IN_SET validator, which
represent doesn't work.
On Monday, May 9, 2016 at 12:17:23 PM UTC-4, Leonel Câmara wrote:
>
> Add a represent to that field and then render the rows before sending them
> to the view, the represent can be something like this:
>
> represent=lambda v, row: '' if not v else ', '.join(v)
>
>
>
>
>
-
day_str = ('Sun', 'Mon', 'Tues', 'wed')
Field('days', type='list:string',,requires=IS_IN_SET ((day_str),
multiple=True),widget=lambda field, value:
SQLFORM.widgets.multiple.widget(field, value, size=3, style='divs',
label=True)),
/view
{{=my_table.days}}
One example
On Monday, May 9, 2016 a
What would be the most efficient way to take out html tag for IS_IN_SET
(str) which outputs
['my string']
Want to display.
my string
Is re.compile and re.sub are the only options?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Does this works? Filename still shows None.
On Wednesday, June 4, 2014 at 6:59:05 AM UTC-4, Michael Beller wrote:
>
> I used compute fields and it now works fine. Unless I did something
> wrong, the instructions in the book for storing the original filename only
> work for the initial insert an
Try:
$(function() { $('#myModal').modal('show'); });
On Wednesday, April 27, 2016 at 11:50:33 AM UTC-4, Ron Chatterjee wrote:
>
> I am having problem keeping the Modal to stay open an updated after the
> form submission. Searching on the web all I see is to set the backdrop
> (css) to stat
db.define_table('Files',
Field("filename", "upload",default=None,
uploadfolder=os.path.join(request.folder, 'uploads')))
grid = SQLFORM.smartgrid(db.Files)
Displays:
List id, and file.
IdFilename
1file
How to show the uploaded filename instead file?
--
Resources:
- http://
Another work around would be to do it this way in the controller probably.
form=FORM('Your
name:', INPUT(_name='name'), INPUT(_type='submit')).
But if I define the form in the book example as shown below, how do I pass
form.vars back into that controller? Lets say I don't have a database for
Newby question.
def mydef():
form = SQLFORM(db.mytable)
if form.process.accept():
conditions here
return locals()
view:
{{=form}}
What if form is defined in the view first.
How to invoke the controller. if in view
first name:
last name:
How to process this form and accept it in the co
If I use the helper function it works. Ran into one issue though.
{{=SPAN(A( IMG(_src=URL('static','images/delete.png')), _href =
URL('delete',args=id), _title = 'Delete', _onclick = "javascript:return
confirm('Are you sure you want to process?')", _class = 'Delete') ) }}
Now, if I want to st
I have a link where I delete the table entry.
But I would like to have a confirmation like "are you sure you want to
delete...?". I believe I need to use javascript.
Any help from the group? How to get a confirmation window prior to delete?
--
Resources:
- http://web2py.com
- http://web2
On that note, is it possible to use web2py template language in Django?
Does anyone know.
On Wednesday, March 16, 2016 at 10:18:59 AM UTC-4, rajjm...@gmail.com wrote:
>
> If you are not comfortable with django ORM you can also use SQLalchemy .
> Use that in web2py first to verify your model. And
Can't seem to find the answer in the forum. A trivial question guys... How
not to show submit button.
form = SQLFORM.factory(Field('search_string',requires=IS_NOT_EMPTY()),
submit_button= 'Submit')
form.element(_type='submit').update(_value=None)
This don't seem to work.
I believe SQL fo
This may be little preliminary but what you mean by "Admin user and
auth_groups" setup and how? I don't recall anything to set up with the
welcome app. It worked the first time straight out of the box.
On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee wrote:
>
> I am looking at thi
Is there a dashboard version of the starter app we can use?
On Wednesday, March 23, 2016 at 6:51:42 AM UTC-4, Ron Chatterjee wrote:
>
> you calling me a dog? lol. jk. Get the point. Thanks
>
> On Wednesday, March 23, 2016 at 6:33:27 AM UTC-4, Nico de Groot wrote:
>>
>> Haven't tried yet, but you n
If you are not comfortable with django ORM you can also use SQLalchemy .
Use that in web2py first to verify your model. And then you can copy and
replace in django. Here is a way to replace the django ORM with SQLAlchemy.
http://lethain.com/replacing-django-s-orm-with-sqlalchemy/
You will be i
Is there a way to show the smartgrid search bar without showing the
dropdown search box? I find the dropdown search can be confusing. Like the
grid with search and clear button but want to exclude the drop down menu
that comes in below with =,<,>, +And, Or...etc.
--
Resources:
- http://w
Trying to create amazon like slider for images/docs. Does anyone know of
any jquery plugin for web2py that allows to do that?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
Junior, do you have an example of bar chart using this?
On Friday, February 19, 2016 at 11:18:10 AM UTC-5, Junior Phanter wrote:
>
> This is the advantagem of the highchart over Google Charts. You can use
> him in local server (offline).
>
> Happy in help.
> Sorry my bad englhis. ;)
>
> 2016-02-1
Older version, I can just put response.title = A(IMG(_src=URL('static',
'images/my_logo.png'))) in menu.py and it worked on every pages. Thank you
Anthony
On Saturday, February 20, 2016 at 4:06:09 PM UTC-5, Anthony wrote:
>
> If you are using the default layout.html that comes with the scaffoldi
Wondering why this don't work in the newest version of web2py (bt3? is the
cause)?
response.title = A(IMG(_src=URL('static', 'images/my_logo.png')))
response.subtitle = 'Find the blogs you search for'
Any work around so it puts a nice heading on the top of the page with key
words inserted
--
I understand what you are saying. Just modify that star j-script to one and
work out the algorithm to save the post. Yes it does. Thank you.
On Tuesday, February 16, 2016 at 10:28:06 PM UTC-5, Dave S wrote:
>
> On Tuesday, February 16, 2016 at 1:32:29 PM UTC-8, rajjm...@gmail.com
> wrote:
>>
>
I got a blank screen. lol
On Tuesday, February 16, 2016 at 12:54:53 PM UTC-5, Junior Phanter wrote:
>
> Use highcharts
> http://www.highcharts.com
>
> Example:
>
> *ON CONTROLLER*
>
> def chart():
>
> dados_chart="[{name: 'Batata', y: 12},{name: 'Tomate', y: 8},{name:
> 'Mamão', y: 12}]" #Cha
stumble upon this post. For some reason, this don't work:
*model:*
db.define_table('mytable',
Field('name', type='list:string',requires=IS_IN_SET
(['red', 'blue','yellow']),widget=lambda field, value:
SQLFORM.widgets.checkboxes.widget(field, value,
_style='bootstrap3_inline_fa
I used google charts using a simple bar chart since I couldn't find a
workable example on the slice using pygal etc. But google chart seems
little slow in loading on the browser and I believe it may be due to
loading the js file from the remote site. Does anyone have the same
experience? If so,
playing with blocks.
I have
{{block right_sidebar}}
{{end}}
I would like to set the background color different in the sidebar area
comparing my main page. Any help from the community?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2
40 matches
Mail list logo