Annet | 20 Dec 16:24 2014

routes_onerror

To keep vistors of my app from seeing error tickets I coded the following
routes.py and put it in web2py's home directory:

routes_onerror = [
    (r'init/*', r'/handler/default/error')
    ,(r'myleonexus/*', r'/handler/default/error')
    ,(r'*/*', r'/handler/default/error')
]


In case of an error ticket it does not redirect to the handler app, why not?  I am using
web2py 2.9.11.


--
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.
Manuele Pesenti | 20 Dec 11:08 2014
Picon

grid and expressions

Hi *,
why expressions are not accepted by grid while I can use parameter
groupby? I think they could be treated as virtual fields... right?

Thanks

    Manuele

--

-- 
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.

Manuele Pesenti | 19 Dec 14:19 2014
Picon

bug issue in query serialization

https://code.google.com/p/web2py/issues/detail?id=2027&thanks=2027&ts=1418994994

--

-- 
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.

Manuele Pesenti | 19 Dec 14:07 2014
Picon

pass query from client to sever

Hi *!
What's the better way to transfer query information from a client to a
(web2py) web service where I need to rebuild the Query object and
perform the query on my db?

Thanks a lot

    M.

--

-- 
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.

Mirek Zvolský | 19 Dec 12:13 2014
Picon

Computed field not computed at INSERT ?

Web2py book says
>> When a new record is modified, including both insertions and updates, if a value for the field is not provided, web2py tries to compute ....

For me this works well after UPDATE from SQLFORM.
However, when I use

db.table.insert(sourcefieldforcomputed=value)

computed field remains None ??


What to do to get the expected behaviour?
Should I call the compute function explicitly? Or is it web2py bug? Or...?

Thanks for help. Mirek

Version 2.9.11-stable+timestamp.2014.09.15.23.35.11
Debian/Jessie
SQLite

--
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.
dave | 19 Dec 09:42 2014
Picon

pysimplesoap SOAP problem

1. I am trying to communicate with a server using pysimplesoap, 

2. I wanted to invoke mTaxAddPayment but a
schema invalid (type not found) error occurs, what am I doing wrong

3. code and xml documents are posted below


def testSoap():
    from gluon.contrib.pysimplesoap.client import SoapClient, SoapFault
    # create a SOAP client
    client=SoapClient(wsdl="http://www.tlmgateway.com/tlmgateway/TAXAddPayment.asmx?WSDL",trace=True)
    # call SOAP method
    response = client.mTAXAddPayment(ii={'password': 'password',
                                         'PriSSN' : 'test',
                                         'PymtType' : 'test',
                                         'PymtNum' : 'test',
                                         'PymtAmt' : 44,
                                         'PymtRTN' : 'test',
                                         'PymtDDA' : 'test',
                                         'IssuedUser' : 'test',
                                         'PrintUser' : 'test',
                                         'DisburseInd' : 'test',
                                         'PymtStatus' : 'test',
                                         'PayeeName' : 'test',
                                         'PymtDLR' : 'test',
                                         'PymtLOCID' : 'test',
                                         'LoanNum' : 'test'
                                        }
                                     )
    try:
        result = response
    except SoapFault:
        result = None
    return dict(xml_request=client.xml_request,
                xml_response=client.xml_response,
                result=result)


This XML file does not appear to have any style information associated with it. The document tree is shown below.
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"xmlns:tns="TAXAddPayment" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"targetNamespace="TAXAddPayment">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="TAXAddPayment">
<s:element name="mTAXAddPayment">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ii" type="tns:InputInfo"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="InputInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PriSSN" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PymtType" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PymtNum" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="PymtAmt" type="s:decimal"/>
<s:element minOccurs="0" maxOccurs="1" name="PymtRTN" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PymtDDA" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="IssuedUser" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PrintUser" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="DisburseInd" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PymtStatus" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PayeeName" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PymtDLR" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PymtLOCID" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="LoanNum" type="s:string"/>
</s:sequence>
</s:complexType>
<s:element name="mTAXAddPaymentResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="mTAXAddPaymentResult">
<s:complexType>
<s:sequence>
<s:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax"/>
<s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax"/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="mTAXAddPaymentSoapIn">
<wsdl:part name="parameters" element="tns:mTAXAddPayment"/>
</wsdl:message>
<wsdl:message name="mTAXAddPaymentSoapOut">
<wsdl:part name="parameters" element="tns:mTAXAddPaymentResponse"/>
</wsdl:message>
<wsdl:portType name="TaxAddPaymentSoap">
<wsdl:operation name="mTAXAddPayment">
<wsdl:input message="tns:mTAXAddPaymentSoapIn"/>
<wsdl:output message="tns:mTAXAddPaymentSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TaxAddPaymentSoap" type="tns:TaxAddPaymentSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="mTAXAddPayment">
<soap:operation soapAction="TAXAddPayment/mTAXAddPayment" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="TaxAddPaymentSoap12" type="tns:TaxAddPaymentSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="mTAXAddPayment">
<soap12:operation soapAction="TAXAddPayment/mTAXAddPayment" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TaxAddPayment">
<wsdl:port name="TaxAddPaymentSoap" binding="tns:TaxAddPaymentSoap">
<soap:address location="http://www.tlmgateway.com/tlmgateway/TAXAddPayment.asmx"/>
</wsdl:port>
<wsdl:port name="TaxAddPaymentSoap12" binding="tns:TaxAddPaymentSoap12">
<soap12:address location="http://www.tlmgateway.com/tlmgateway/TAXAddPayment.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>



 

--
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.
Dave S | 19 Dec 03:00 2014
Picon

(OT) Horrible date/time dsiplay format

This makes me cringe:

"Tue May 28 20:29:49 PDT 2013", seen on a buglist archive.  Is it bugzilla default?

The year should be with the month date stuff, at the very least.

(Sorry, OT but I had to say it to someone.)

/dps


--
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.
Jordan Ladora | 18 Dec 19:35 2014
Picon

Handling spaces in filename with response.stream

I'm using response.stream, like -

response.stream(open(file_path, 'r'), attachment=True, chunk_size=4096, filename='abc def ghi.txt')

When there is a space in the filename, I get a downloaded file with a name that is the first part split on ' ', same as calling filename.split(' ')[0].

For example, with filename='abc def ghi.txt', I am getting 'abc' as the name of the downloaded file.

How can I avoid this?

Thanks,
-j

--
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.
Annet | 18 Dec 18:42 2014

separator=''

I have the following code:

form = SQLFORM(db.nd_node_tag, record, deletable=True, showid=False,
                       formstyle=bootstrap3, separator='', hidden=dict(nodeID=nodeID))

separator='' no longer removes the separator from the label, separator=False neither.

I am using web2py 2.9.11 has separator='' been replaced?


Kind regards,

Annet

--
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.
Mirek Zvolský | 18 Dec 17:11 2014
Picon

X-Frame-Options: SAMEORIGIN

I am not sure if web2py send this header.
If not, why not implement it at the framework level ?

--
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.

Backend and FrontEnd dev

Dear All.

Some customer need a application like a Desktop application (visual basic, wxPython, etc.) and reports.

I think to use web2py, but i need to do rich windows (widgets or RIA). I am searching how i can do so i found qooxdoo.
For reports i think to use Reportlab.

My web development experience is some low, but i think this is my opportunity to learn.  

So i think to use web2py like bakend and  qooxdoo like front end.

I need to know your recomendation, it's fine that  i use web2py and qooxdoo.? And someone could me explain how i can use both technologies.
Do you recommend to me use another libs like bootstrap for to do rich windows?

I hope look your feedback and recomendations of how i can do and not die to trying

Regards

Pd. Excuse my english.


--
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