[web2py] Embed html from drawio.com into wiki markmin

2015-05-18 Thread Ben Lawrence
HI drawio.com allows you to draw diagrams and export them. One format is html with a javascript. An example is AEMdatabase 7ZxRb+I4EIB/TaW7hz2FhAB9LJS921N3ryqV7tklBqxNYuSYUvrrdxyPIYnTFjYhbSUDEskkGSfzje0Z23ARTJKnvwVZr77ziMYXvhc9XQTXFz68Bh58KclOS4aDoRYsBYu0qHcQzNgzRSFet9ywiGalEyXnsWTrsnDO05T

[web2py] Re: URL structure for a blog (using router?)

2015-05-18 Thread Ron Chatterjee
K. Thanks. On Monday, May 18, 2015 at 6:21:24 PM UTC-4, Dave S wrote: > > > > On Monday, May 18, 2015 at 2:45:33 PM UTC-7, Ron Chatterjee wrote: >> >> Any example of a web2py app or in web2py manual about how to use slug >> for controller? I asked because I don't see one and I am curious about

[web2py] Re: URL structure for a blog (using router?)

2015-05-18 Thread Dave S
On Monday, May 18, 2015 at 2:45:33 PM UTC-7, Ron Chatterjee wrote: > > Any example of a web2py app or in web2py manual about how to use slug for > controller? I asked because I don't see one and I am curious about its > implementation as a controller. > Can't you start with http://www.web2p

[web2py] Using mongo engine Field type

2015-05-18 Thread Ron Chatterjee
Is there a way to use mongo engine field type directly inside web2py. I know in django I can do this: #--- from mongoengine import Document, StringField, DateTi

[web2py] Re: URL structure for a blog (using router?)

2015-05-18 Thread Ron Chatterjee
Is the a web2py app that uses slug or any example in the web2py manual. I asked because I don't see one and I would like to learn how slug is used as a controller to different blog post as mentioned. On Monday, May 18, 2015 at 3:35:26 PM UTC-4, Dave S wrote: > > > > On Monday, May 18, 2015 at

[web2py] Re: URL structure for a blog (using router?)

2015-05-18 Thread Dave S
On Monday, May 18, 2015 at 10:24:21 AM UTC-7, Massimo Di Pierro wrote: > > The usual trick is to generate URLs like > > https://domain.com/blog/145/this-is-an-article > > > where 145 is the id. The slug is just for show. > I've seen sites (big sites,

Re: [web2py] Re: Restricting Access to database based on roles at the Database level.

2015-05-18 Thread Anthony
> > The thing about the auth.requires in decorator is that wrong person can't > even get to controller. > He said he didn't want to rely on restricting access at the controller level (perhaps there are multiple controllers/action, and it would be difficult to keep track of the access rights at

[web2py] Re: xml view

2015-05-18 Thread LoveWeb2py
This should work: controller: data = db(db.table.id>0).select() return dict(data=data) view: {{=data.xml()}} On Monday, May 18, 2015 at 1:52:31 PM UTC-4, Mirek Zvolský wrote: > > I don't know how to write xml views. > > Basic content: {{from gluon.serializers import > xml}}{{=XML(xml(response.

Re: [web2py] Re: Restricting Access to database based on roles at the Database level.

2015-05-18 Thread Anthony
On Sunday, May 17, 2015 at 4:09:35 PM UTC-4, Encompass solutions wrote: > > Each role in the system is going to need different tables. To improve > security it would be good to restrict the roles to only have access to > certain tables, rather than depend on only the controller to enforce this

Re: [web2py] Re: Restricting Access to database based on roles at the Database level.

2015-05-18 Thread Alex Glaros
@Anthony, would this decorator language example below be helpful to Jason? @auth.requires(lambda: not db((db.auth_membership.user_id == auth.user_id) & (db.auth_membership.group_id == db.auth_group.id) & (db.auth_group.role == 'admin') & (db.auth_group.organizationID == request.get_vars.specifi

[web2py] xml view

2015-05-18 Thread Mirek Zvolský
I don't know how to write xml views. Basic content: {{from gluon.serializers import xml}}{{=XML(xml(response._vars,quote=False))}} is not good for me, because just a wrapper like ... is Ok, but the content which are rows from db().select() - and xml tags for the single rows are escaped: <.item>.

[web2py] Re: Text that follows a double-quote inside of current.T() is chopped when used as textarea placeholder

2015-05-18 Thread Spokes
Thanks, Anthony. Issue submitted. On Sunday, May 17, 2015 at 10:21:31 PM UTC-5, Anthony wrote: > > The problem is that there is an inconsistency with the escaping of regular > strings vs. LazyT objects when serializing HTML helpers. When helpers are > serialized, all attribute values are passed

[web2py] Re: reset_password dont open form to change password

2015-05-18 Thread Massimo Di Pierro
This should work and be automatic. Did you change anything? On Saturday, 16 May 2015 09:41:40 UTC-5, Antonio Ladeia wrote: > > Hello everyone, > > Its my first post here, sorry for all. > > I need customize reset password form. I use the example of welcome app, > but in my system, when I click in

[web2py] Re: URL structure for a blog (using router?)

2015-05-18 Thread Jean-François Milants
I found out that what I'm trying to do is a 'slug', a unique name for all of my posts. However, I'm worried about the performances of the search of the post in DB. For example, when the user will enter this URL : https://domain.com/blog/this-is-an-article A request will be made in DB to searc

[web2py] Re: An Existing web2py app can i upload to web2py Environment using Upload & install packed application

2015-05-18 Thread chandrabhushana rao
Hi All, Now i can run the application in the web2py envirionment through following below run the web2py.py file in my application folder then i enter the port number and admin password it will open my application in web2py environment now i can modifie and run the application Thanks, Chandra On

[web2py] Re: URL structure for a blog (using router?)

2015-05-18 Thread Massimo Di Pierro
The usual trick is to generate URLs like https://domain.com/blog/145/this-is-an-article where 145 is the id. The slug is just for show. On Monday, 18 May 2015 12:10:37 UTC-5, Jean-François Milants wrote: > > I found out that what I'm trying to do is a

Re: [web2py] Two SQLFORMs side by side?

2015-05-18 Thread LoveWeb2py
Richard, Thank you for your help. I've finally got it figured out and its working great! One thing I have noticed is that for long SQLFORMs my calendar doesn't hook to the fields and I have to scroll up with the modal open to see the calendar picker. I'm guessing this has something to do with

Re: [web2py] Two SQLFORMs side by side?

2015-05-18 Thread Ron Chatterjee
No. Its all good. I got it figured out. Sorry about that. On Monday, May 18, 2015 at 10:09:21 AM UTC-4, Richard wrote: > > Ron, are you saying that there is some kind of malware in dummy app? > > Richard > > On Fri, May 15, 2015 at 11:47 PM, Ron Chatterjee > wrote: > >> Caveat to that, is there a

[web2py] Navbar icon

2015-05-18 Thread Carla Raquel
How can one add an icon before the 'Welcome' message in the navbar,just like the one next to the 'Profile' in the drop-down? I tried using something like in auth.navbar('Welcome',mode='dropdown'), unfortunately to no avail. Any help would be much appreciated! -- Resources: - http://web2py.com

Re: [web2py] Two SQLFORMs side by side?

2015-05-18 Thread Richard Vézina
Ron, are you saying that there is some kind of malware in dummy app? Richard On Fri, May 15, 2015 at 11:47 PM, Ron Chatterjee wrote: > Caveat to that, is there a way to have to SQLFORM top and bottom like the > picture attached? > > Its more like a django kind of admin panel feature. But in web

Re: [web2py] issue with select with yearfield.year == YEAR

2015-05-18 Thread Richard Vézina
Yeah right!! Thanks and sorry for the false positive... :) Richard On Fri, May 15, 2015 at 5:34 PM, Anthony wrote: > It is a method, not an attribute, so should be db.table.datefield.year(). > > Anthony > > > On Friday, May 15, 2015 at 3:16:57 PM UTC-4, Richard wrote: >> >> Hello, >> >> Not t

Re: [web2py] Wiki Menu can use only one nested menu items

2015-05-18 Thread Massimiliano
It's caused by Bootstrap 3 that doesn't support 3rd level menus. I think manly for mobile support. Have a look here: https://github.com/web2py/web2py/issues/938 On Fri, May 15, 2015 at 10:09 PM, Daniel Vogel wrote: > Hello > The "Wiki Menu", with web2py version (2.10.4-stable), does not show m

[web2py] Re: New web2py user with some questions/need for advice

2015-05-18 Thread LightDot
Well, with the information given, I would opt for using web2py's scheduler for the background tasks and ajax on the client side. I would probably try to add records to the database as needed, rather than new tables. Database records and resident files can be later pruned by another scheduler tas

[web2py] Re: New web2py user with some questions/need for advice

2015-05-18 Thread Mirek Zvolský
I don't know much about this, but I think there is nothing special with web2py. The solution with background task looks good. On the client side you can test finished results via ajax or just reload the page without javascript: The background task can check filesystem changes sometimes (from