Carla Raquel | 31 Aug 17:39 2015
Picon

Pylint with web2py in sublime error

I'm using Pylint in sublime but it gives me some errors on web2py specific variables(request,response,etc.). I've read somewhere that to solve this you had to do something like: 

if 0:
    from gluon import *

The problem is, I'm getting the error 'Unable to import gluon'. Do you know of any fix for this or if there's another way to end the web2py errors?



Regards,
Carla

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Jose | 31 Aug 04:28 2015
Picon

Embed cas login form

Hi,

I have two
applications: App_A (cas provider) and App_B (CAS consumer).

App_A and App_B have different layouts and css

In App_A I defined the user function returns the form login using return form [not return a dictionary]

What I want to know if there are ways to embed the form within my App_B.

All this is for the login form looks the same style App_B

José

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Alex Glaros | 30 Aug 22:16 2015
Picon

is there way to reset primary key to 1 after deleting records without having to drop the table?

is there a way to delete all records and reset primary key to 1 without dropping the table?

the goal is to reinitialize some lookup tables without having to drop table so that I can do it from a controller, and also don't have to set migrate to "True"

thanks,

Alex Glaros


--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Mamisoa Andriantafika | 30 Aug 19:20 2015
Picon

TABLE--TR--TD in web2py book

Hi,

Could you explain to me how this code works?

http://web2py.com/books/default/chapter/29/05/the-views#TABLE--TR--TD

>>> table = [['a', 'b'], ['c', 'd']] >>> print TABLE(*[TR(*rows) for rows in table]) <table><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>
I do not completely understand how the loop is created there?

Thank you for your highlight.

Mike

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Leonardo Pires Felix | 30 Aug 01:03 2015

How accept latin letters on args

Hi guys,

I'm doing a little CMS for my application,

My application can have some posts, so every post should be in a url like this /application/cms/post/{arg0:postid}/{arg1:the title of the post).
The title of the post i'll not use it, it's just for a more friendly url. But if the title has non utf-8 letters like ç or ã web2py raises a invalid request.

There is a way to accept those letters on args?

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Ian W. Scott | 29 Aug 07:40 2015
Picon

How to store etree object that can't be pickled

I have a parsed lxml.etree object that I need to persist from one request to the next so that users can interact with it. The problem is that etree objects can't be pickled, so when I try to store it in session I get a PicklingError. I just tried using memcache instead, but it seems to use pickling as well and raises the same PicklingError.

Is there any way to store an un-picklable object (maybe in memory somehow?) so that it's accessible to web2py on subsequent requests?

Thanks,

Ian

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
peterdawhiz | 27 Aug 15:17 2015
Picon

Retrieve User details from Auth_user using restfull api

Am able to retrieve record from all tables except the Auth tables(am using default web2py names). Am using restful api function below.
The request is in this format: 
this works :
 http://127.0.0.1:8000/app/default/api/country.json  

this one fails:
 http://127.0.0.1:8000/app/default/api/auth_user.json  

<at> request.restful()
def api():
    response.view = 'generic.' + request.extension
    def GET(*args, **vars):
        patterns = 'auto'
        parser = db.parse_as_rest(patterns,args,vars)
        if parser.status == 200:
            return dict(content=parser.response)
        else:
            raise HTTP(parser.status,parser.error)
    def POST(table_name,**vars):
        return db[table_name].validate_and_insert(**vars)
    def PUT(table_name,record_id,**vars):
        return db(db[table_name]._id==record_id).update(**vars)
    def DELETE(table_name,record_id):
        return db(db[table_name]._id==record_id).delete()
    return dict(GET=GET, POST=POST, PUT=PUT, DELETE=DELETE)

Where is my request to Auth tables failing?

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Picon

populating DB in first app run

Hi, I need to add some users, and some fields to tables at the first 
time that my app runs, right now I ask for fields in the tables and if 
they are empty I put the values, but I don't like to query the tables in 
all requests for doing this. What do you recommend me?

--
Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el
cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el
compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/

--

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Dmitri Ermolaev | 28 Aug 11:28 2015
Picon

perfomance - import vs (vars)


best perfomance in modules??

1
def get_gift_code():
    from gluon import current
    request = current.request
    v = request.vars...


2
def get_gift_code(request):
    v = request.vars....



--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Vineeta Jain | 28 Aug 08:57 2015
Picon

Ticket issued: droidanalyst/172.16.8.220.2015-08-28.12-07-28.e063c817-e6dd-4d67-b7d1-63e22ca93c91

sir,

droidanalyst.org is a website working through web2py framework. From past many days the website is not opening and giving an issue:- Ticket issued: droidanalyst/172.16.8.220.2015-08-28.12-07-28.e063c817-e6dd-4d67-b7d1-63e22ca93c91.

Please provide assistance and make our website work again. Please help.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
at | 28 Aug 07:54 2015
Picon

How to define id for a form created with SQLFORM.factory ?

Hi,

A quick and silly question:
How to define id for a form created with SQLFORM.factory?

Thanks

--
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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane