Re: [web2py] Kendo UI

2014-10-27 Thread Phyo Arkar
I really dislike angular's syntax. Its unnecessarily weird. On Monday, October 27, 2014, Vasile Ermicioi elff...@gmail.com wrote: I would build the interface with angular+kendoui and use web2py for REST API On Sun, Oct 26, 2014 at 1:26 AM, Phyo Arkar phyo.arkarl...@gmail.com

Re: [web2py] Re: SAML2 Service Provider app in web2py?

2014-10-27 Thread Prasad Muley
Hi Massimo, In which provider log should I look into? (service provider [web2py app] or idp provider [okta / onelogin]). Could you share your web2py app's (service provider) setting and idp provider settings?. I've followed same instructions but getting that error. On Sat, Oct 25,

[web2py] SCOPE_IDENTITY mssql3 legacy table where id is not an identity column

2014-10-27 Thread Tim Richardson
I have a table in sqlserver 2008r2 where the ID column is not an identity (but is a unique integer). The ID column is not called ID. I am using update_or_insert and in the case of new record I provide the value for the ID column. This is web2py trunk. The database adapter is mssql3 I am

[web2py] Re: Exception (trunk) SCOPE_IDENTITY mssql3 legacy table where id is not an identity column

2014-10-27 Thread Tim Richardson
On Monday, 27 October 2014 18:17:10 UTC+11, Tim Richardson wrote: I have a table in sqlserver 2008r2 where the ID column is not an identity (but is a unique integer). The ID column is not called ID. I am using update_or_insert and in the case of new record I provide the value for the ID

[web2py] Credit card payment for european web site

2014-10-27 Thread Gael Princivalle
Hello. I'm still checking how to do an ecommerce website with web2py. As the website will be Italian, I've to check how making payments. Stripe.com, Authorize.net, and DowCommerce seems to be dedicated to US customers. With Google Wallet all products have to registrated inside the Google

Re: [web2py] Credit card payment for european web site

2014-10-27 Thread Martin Weissenboeck
Same problem - website for Austrian customers. I am interested too. Regard, Martin 2014-10-27 9:52 GMT+01:00 Gael Princivalle gaelprinciva...@gmail.com: Hello. I'm still checking how to do an ecommerce website with web2py. As the website will be Italian, I've to check how making payments.

[web2py] Re: Credit card payment for european web site

2014-10-27 Thread Mirko
Hi, try http://www.worldpay.com/global, it has a nice api. -Mirko On Monday, October 27, 2014 9:52:16 AM UTC+1, Gael Princivalle wrote: Hello. I'm still checking how to do an ecommerce website with web2py. As the website will be Italian, I've to check how making payments. Stripe.com,

Re: [web2py] Re: Credit card payment for european web site

2014-10-27 Thread Gael Princivalle
Hi Mirko. Have you already integrate worldplay inside web2py ? -- Gael Princivalle 2014-10-27 10:01 GMT+01:00 Mirko mscavaz...@gmail.com: Hi, try http://www.worldpay.com/global, it has a nice api. -Mirko On Monday, October 27, 2014 9:52:16 AM UTC+1, Gael Princivalle

Re: [web2py] Re: Credit card payment for european web site

2014-10-27 Thread Mirko
No, but I did it in Plone quite smoothly a long time ago. On Monday, October 27, 2014 10:16:52 AM UTC+1, Gael Princivalle wrote: Hi Mirko. Have you already integrate worldplay inside web2py ? -- Gael Princivalle 2014-10-27 10:01 GMT+01:00 Mirko mscav...@gmail.com

Re: [web2py] Re: Credit card payment for european web site

2014-10-27 Thread Gael Princivalle
Worldpay have a monthly fee, and Paypal no. http://www.ki-media.co.uk/how-to-choose-a-payment-gateway/ -- Gael Princivalle 2014-10-27 10:20 GMT+01:00 Mirko mscavaz...@gmail.com: No, but I did it in Plone quite smoothly a long time ago. On Monday, October 27, 2014

[web2py] trunk admin clear disk cache exception

2014-10-27 Thread Tim Richardson
Using rocket on trunk, the admin- database-cache Clear Cache? is causing an exception. Version:0.9 StartHTML:0229 EndHTML:5194 StartFragment:0263 EndFragment:5158

[web2py] Keyerror when .represent is added

2014-10-27 Thread Johann Spies
Model: db.define_table('article', Field('art_id', 'reference akb_articles'), Field('title', type=citext), #artikel titel Field('abstract',type=citext), #ab Field('doc_type', length=78), Field('author_count',

[web2py] Re: Keyerror when .represent is added

2014-10-27 Thread Johann Spies
New information. This does not happen when I move the 'represent' into the field definition: Field('url', 'text', represent= lambda x, record: get_url(x)), Regards Johann On 27 October 2014 11:28, Johann Spies johann.sp...@gmail.com wrote: Model: db.define_table('article',

Re: [web2py] SQLFORM.grid created from request.vars - search, pagination etc breaks

2014-10-27 Thread Mandar Vaze
Current code looks like this : https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L2031 See if it helps -Mandar P.S. : I posted original query (2 yrs ago) but as mentioned earlier in the thread - I ended up using session variable though. -- Resources: - http://web2py.com -

[web2py] Re: Exception (trunk) SCOPE_IDENTITY mssql3 legacy table where id is not an identity column

2014-10-27 Thread Niphlod
definitively needs to be an identity to make any insert*() work. And it is since the beginning. On Monday, October 27, 2014 8:42:12 AM UTC+1, Tim Richardson wrote: On Monday, 27 October 2014 18:17:10 UTC+11, Tim Richardson wrote: I have a table in sqlserver 2008r2 where the ID column is

Re: [web2py] Kendo UI

2014-10-27 Thread Vasile Ermicioi
what do you mean by angular syntax? angular templates are similar to web2py templates angular controllers is just plain javascript angular is a great framework On Mon, Oct 27, 2014 at 8:14 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: I really dislike angular's syntax. Its unnecessarily

[web2py] form..custom. widget and datepicker

2014-10-27 Thread Annet
I have the following field definition: Field('expiryDate', **isdate), isdate = dict(type='date', requires=IS_DATE(format='%d-%m-%Y', error_message='Incorrect format dd-mm-'), represent=lambda v: v.strftime('%d/%m/%Y') if v else '') and javascript function: $(function()

[web2py] placeholder={{=form.custom.widget.agreedPrice}}

2014-10-27 Thread Annet
I have the following field definition: Field('agreedPrice', type='double', default=0.00, requires=[IS_FLOAT_IN_RANGE(0,256, dot=',', error_message='Format not of type double')], notnull=True, label='Price in euro', writable=False, readable=False), agreedPrice is set in a function:

[web2py] Re: Keyerror when .represent is added

2014-10-27 Thread Leonel Câmara
By moving the represent inside the Field definition you allow the table to be lazy. As in, the table is only defined when it really needs to be. I'm guessing that table akb_articles is defined after this one. I would both use the represent inside the field as lazy tables are faster, and make

[web2py] Re: placeholder={{=form.custom.widget.agreedPrice}}

2014-10-27 Thread Niphlod
form.custom.widget.whatever is a widget, not a value. On Monday, October 27, 2014 12:18:24 PM UTC+1, Annet wrote: I have the following field definition: Field('agreedPrice', type='double', default=0.00, requires=[IS_FLOAT_IN_RANGE(0,256, dot=',', error_message='Format not of type

[web2py] Re: form..custom. widget and datepicker

2014-10-27 Thread Niphlod
does it have a class =date ? On Monday, October 27, 2014 12:04:37 PM UTC+1, Annet wrote: I have the following field definition: Field('expiryDate', **isdate), isdate = dict(type='date', requires=IS_DATE(format='%d-%m-%Y', error_message='Incorrect format dd-mm-'),

[web2py] Re: placeholder={{=form.custom.widget.agreedPrice}}

2014-10-27 Thread Anthony
form.custom.widget.agreedPrice is the actual input widget for the field -- why do you want to use that as the HTML placeholder attribute? The placeholder attribute should just be some text you want to display in the field. If you want to display the default value, then just use something like

[web2py] Re: Credit card payment for european web site

2014-10-27 Thread Leonel Câmara
Mangopay works in Europe, has no monthly fees and it has a python sdk: https://github.com/MangoPay/mangopay2-python-sdk It shouldn't be too hard to integrate. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Keyerror when .represent is added

2014-10-27 Thread Johann Spies
Thanks for your reaction Leonel. On 27 October 2014 13:25, Leonel Câmara leonelcam...@gmail.com wrote: By moving the represent inside the Field definition you allow the table to be lazy. As in, the table is only defined when it really needs to be. I'm guessing that table akb_articles is

[web2py] ajax issue/question

2014-10-27 Thread Craig Matthews
I am encountering what I think is a weird problem with an ajax call. My web page contains an iframe, which is loaded with a normal controller/view web2py request. When a button is clicked that should cause the javascript in the iframe to send an ajax request to web2py, I am seeing only a

[web2py] Re: form..custom. widget and datepicker

2014-10-27 Thread Annet
Hi Simone, Thanks for your reply. Yes it does have a class=date form-control whereas it should have class=date form-control hasDatepicker Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: placeholder={{=form.custom.widget.agreedPrice}}

2014-10-27 Thread Annet
Hi Simone and Anthony, Thanks for your replies. I wanted to style this custom form the Bootstrap 3 way: http://getbootstrap.com/css/#forms-control-disabled That's why I use the placeholder attribute. Using db.mbs_sub_register.agreedPrice.default as the placeholder soves the issue. Best,

[web2py] Re: placeholder={{=form.custom.widget.agreedPrice}}

2014-10-27 Thread Anthony
Yes, the problem is not with using the placeholder attribute -- it's just with what you put in there. On Monday, October 27, 2014 8:34:02 AM UTC-4, Annet wrote: Hi Simone and Anthony, Thanks for your replies. I wanted to style this custom form the Bootstrap 3 way:

Re: [web2py] SQLFORM.grid created from request.vars - search, pagination etc breaks

2014-10-27 Thread Alen Cerovic
Hi Mandar, as you pointed me to source it seems there is still just args parameter. I tried with session.vars but somehow I was loosing those vars and it just did not feel right to me. I ended up switching to args and pass those request.args to grid as args parameter. It works now but I like

[web2py] Re: Create a drop-down menu from a database

2014-10-27 Thread Alen Cerovic
Having same problem citation This code produce only a simple imput box and not a drop down menu Have you found a solution? Dana petak, 11. listopada 2013. 19:06:23 UTC+2, korisnik Py Dev napisao je: Massimo, thank you very much for your example, but it does not work, here is my complete

[web2py] Translation issue

2014-10-27 Thread Ion Caliman
Hi! I reported a bug with translation here https://code.google.com/p/web2py/issues/detail?id=2003sort=-modifiedcolspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Modified . Can someone to look at it and to suggest a solution? Thanks! -- Resources: - http://web2py.com -

Re: [web2py] Kendo UI

2014-10-27 Thread Massimo Di Pierro
I agree with Phyo. It is not the template syntax that is weird, it is the logic of defining controllers and scope clientside. I like ractive.js instead. On Monday, 27 October 2014 01:14:51 UTC-5, Phyo Arkar wrote: I really dislike angular's syntax. Its unnecessarily weird. On Monday,

[web2py] Re: Credit card payment for european web site

2014-10-27 Thread Massimo Di Pierro
I would like this intergrated. Let me know if I can help. On Monday, 27 October 2014 06:35:51 UTC-5, Leonel Câmara wrote: Mangopay works in Europe, has no monthly fees and it has a python sdk: https://github.com/MangoPay/mangopay2-python-sdk It shouldn't be too hard to integrate. --

Re: [web2py] Kendo UI

2014-10-27 Thread JorgeH
I agree with Phyo and Massimo Ractive.js is much better in that sense. On Monday, October 27, 2014 8:30:38 AM UTC-5, Massimo Di Pierro wrote: I agree with Phyo. It is not the template syntax that is weird, it is the logic of defining controllers and scope clientside. I like ractive.js

Re: [web2py] Re: Credit card payment for european web site

2014-10-27 Thread Gael Princivalle
Great. Mangopay is also really cheaper than Paypal for the merchant: http://www.mangopay.com/pricing/ For the moment I must spend time for building all the application without the payment function. In a couple of months I'll take care of it. I hope someone else will have done something on

[web2py] Re: ajax issue/question

2014-10-27 Thread Leonel Câmara
Javascript code in the iframe shouldn't make changes in the top frame. It's possible if the iframe is in the same domain, my guess is that you aren't referring to the parent window so it's looking for the place to put the ajax call result inside the iframe, but you shouldn't. Why are you using

[web2py] Re: ajax issue/question

2014-10-27 Thread Craig Matthews
I am looking to reduce the amount of data transferred by making this page of my application behave like an SPA (single-page application). I have searching built into the master page, and then individual records are loaded into the iframe, one at a time. When a user wants another record, they

[web2py] Re: ajax issue/question

2014-10-27 Thread Leonel Câmara
You really don't need an iframe for any of this. If you really want to reduce the amount of data you should have your search form return the results using json and then make the HTML to put in the results using javascript. That said I don't know exactly what's going wrong. My guess is that

[web2py] Re: trunk admin clear cache exception

2014-10-27 Thread Leonel Câmara
Hey Tim, This problem was caused by appadmin creating files in the cache folder that shouldn't be there, it has been fixed: https://github.com/web2py/web2py/commit/9d4b2e66c4736c218033e8be70d135cdf0fc718f Until we release another version you need to update your appadmin manually and delete

[web2py] Re: ajax issue/question

2014-10-27 Thread Anthony
Instead of the iframe, why not just put the record in a div that gets updated via Ajax? On Monday, October 27, 2014 11:16:14 AM UTC-4, Craig Matthews wrote: I am looking to reduce the amount of data transferred by making this page of my application behave like an SPA (single-page

Re: [web2py] Kendo UI

2014-10-27 Thread Vasile Ermicioi
if you are building single page applications you will do the same thing with qooxdoo, so I don't get it.. controller + view + databinding + directives = great combos for building components(widgets) here a simple example to get an idea

[web2py] Re: best way to play sound one time? session or cookies

2014-10-27 Thread Dave S
On Saturday, October 25, 2014 11:25:46 AM UTC-7, LoveWeb2py wrote: Thank you, Massimo. I'll look into that. First time I've heard of html5 local storage. Following the link Massimo was most interesting. I took my HTML course when HTML5 was just a little too new to be covered, so I'm

[web2py] Re: trunk admin clear cache exception

2014-10-27 Thread Tim Richardson
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

[web2py] Error with response ?BUFFER? limitations

2014-10-27 Thread André Kablu
Hi all, Anyone can tell me if there are any limitations on response buffer size? I created a proccess that generates 6000 lines, when I try to output them to browser1 i got the error from Rocket: File /web2py/gluon/rocket.py, line 152, in _sendall_darwin sent = self.socket.send(buf[offset:])

[web2py] Re: form..custom. widget and datepicker

2014-10-27 Thread Niphlod
no, it shouldn't. any .date gets added a datepicker automatically by web2py.js... the point is having an input with a date class to make the binding with the calendar valid. You're doing something wrong with your custom form since you say normal ones work. On Monday, October 27, 2014 1:23:08

[web2py] Re: Error with response ?BUFFER? limitations

2014-10-27 Thread Derek
I stole this answer from stackoverflow... Your server process has received a SIGPIPE writing to a socket. This usually happens when you write to a socket fully closed on the other (client) side. This might be happening when a client program doesn't wait till all the data from the server is

[web2py] Re: best way to play sound one time? session or cookies

2014-10-27 Thread Derek
I would suggest you store first the name of the file to play in localstorage and then read the name of the file from localstorage to play it. if the person for some reason disables localstorage they won't hear the sound... which is probably better than annoying someone every single time

Re: [web2py] Re: Credit card payment for european web site

2014-10-27 Thread Derek
http://web2py.com/books/default/chapter/29/14/other-recipes They have a lot of pay vendors supported. Pick one. If you'd like an integration, look here... http://docs.mangopay.com/api-references/ It looks super easy to do one. If you don't want to use their rest api, then use this:

[web2py] Notes on IIS configuration for web2py

2014-10-27 Thread Tim Richardson
For sure we can make better notes. But for what it's worth, these are my notes on getting web2py working on IIS. Including Simone's solution to IIS clobbering requests when they created or modified .py files.

Re: [web2py] Kendo UI

2014-10-27 Thread Phyo Arkar
I just discovered Reactive.js. I like the syntax , its a lot like web2py's template. cool! It actually let you write lesser line of code. What i don't like about Angular especially is Directives.Followed by defining controllers and scope clientside as Massimo saids. I also find defining