Re: {Disarmed} Re: {Disarmed} Re: [web2py] Re: web2py and SEO

2017-06-16 Thread rajjmatthur
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 #---

Re: [web2py] Re: web2py and SEO

2017-06-14 Thread rajjmatthur
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

[web2py] change background color of a form

2017-05-23 Thread rajjmatthur
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='

[web2py] Re: Can we use a web2py app on Android mobile?

2016-08-01 Thread rajjmatthur
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

[web2py] How to upload a file using SQLFORM.factory

2016-07-31 Thread rajjmatthur
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

[web2py] Re: SQLFORM.grid input fields size in auto generated Edit/New forms

2016-07-25 Thread rajjmatthur
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

Re: [web2py] Hide flash message after some elapsed time instead of on click

2016-07-11 Thread rajjmatthur
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

[web2py] Re: How to edit the menu bar so as to remove profile and name in front of welcome in the dropdown?

2016-06-01 Thread rajjmatthur
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

[web2py] Re: How to edit the menu bar so as to remove profile and name in front of welcome in the dropdown?

2016-05-31 Thread rajjmatthur
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

[web2py] Re: How to edit the menu bar so as to remove profile and name in front of welcome in the dropdown?

2016-05-20 Thread rajjmatthur
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

[web2py] Re: Problem with routes

2016-05-14 Thread rajjmatthur
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

[web2py] Re: How to take HTML tag out out of list string, in set

2016-05-14 Thread rajjmatthur
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,

[web2py] Re: How to take HTML tag out out of list string, in set

2016-05-12 Thread rajjmatthur
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

[web2py] Re: How to take HTML tag out out of list string, in set

2016-05-10 Thread rajjmatthur
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

[web2py] Re: How to take HTML tag out out of list string, in set

2016-05-09 Thread rajjmatthur
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

[web2py] Re: How to take HTML tag out out of list string, in set

2016-05-09 Thread rajjmatthur
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) > > > > > -

[web2py] Re: How to take HTML tag out out of list string, in set

2016-05-09 Thread rajjmatthur
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

[web2py] How to take HTML tag out out of list string, in set

2016-05-08 Thread rajjmatthur
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

[web2py] Re: How to update the stored original filename for upload field using smartgrid edit form?

2016-05-06 Thread rajjmatthur
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

[web2py] Re: How to keep a Bootstrap Modal open even after a form submission

2016-04-27 Thread rajjmatthur
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

[web2py] show uploaded filename in SQLFORM.grid

2016-04-24 Thread rajjmatthur
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://

[web2py] Re: Creating form in the view

2016-04-13 Thread rajjmatthur
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

[web2py] Creating form in the view

2016-04-13 Thread rajjmatthur
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

[web2py] Re: delete on confirmation

2016-04-11 Thread rajjmatthur
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

[web2py] delete on confirmation

2016-04-10 Thread rajjmatthur
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

[web2py] Re: How many days does it take you to learn django if you know web2py (and only web2py)?

2016-04-10 Thread rajjmatthur
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

[web2py] Not to show submit button using formfactory

2016-04-01 Thread rajjmatthur
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

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread rajjmatthur
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

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread rajjmatthur
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

[web2py] Re: How many days does it take you to learn django if you know web2py (and only web2py)?

2016-03-19 Thread rajjmatthur
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

[web2py] Smartgrid search bar without dropdown search

2016-03-10 Thread rajjmatthur
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

[web2py] Amazon like slider

2016-03-09 Thread rajjmatthur
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

Re: [web2py] Re: charts on web2py

2016-02-23 Thread rajjmatthur
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

[web2py] Re: response.title doesn't work

2016-02-20 Thread rajjmatthur
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

[web2py] response.title doesn't work

2016-02-20 Thread rajjmatthur
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 --

[web2py] Re: star or favorite an event or list

2016-02-17 Thread rajjmatthur
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: >> >

Re: [web2py] Re: charts on web2py

2016-02-16 Thread rajjmatthur
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

[web2py] Re: show_if logical operators

2016-02-16 Thread rajjmatthur
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

Re: [web2py] Re: charts on web2py

2016-02-15 Thread rajjmatthur
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,

[web2py] background color of block sidebar

2016-02-10 Thread rajjmatthur
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