[web2py] I have some questions about Central Authorization Service (CAS)

2013-07-29 Thread Chun-Hung Chen
Hi, Let me describe what I want to achieve. There are 2 domains, myapp.domain.name and forum.domain.name. I want login one domin and automatically login at another domain. From book and search, CAS could be a solution. Thus I set up auth.domain.name and setting cas_prodiver=auth.domain.name.

[web2py] Re: Uploading data as blob -- hitting a brick wall

2013-07-29 Thread Joe Barnhart
I had an idea to work around the problem... Define the blob field in the table and then set the "uploadfield" parameter (of the "upload" field) AFTER table creation! Perfect (I thought), I'll have the contents of the uploadfield as a Field (not a string) and I'll have the "table" attribute of

Re: [web2py] connecting web2py application to remote db

2013-07-29 Thread Ovidio Marinho
Look this xmlrpc http://www.web2py.com/book/default/chapter/10 Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com 83 8826 9088 - Oi 83 9336 3782 - Claro Brasil 2013/7/29 Monika Yadav >

[web2py] Re: Setting hidden fields with custom SQLFORMs

2013-07-29 Thread davedigerati
Well, thank you very much lesssugar, adding to my controller did indeed work, so at least i can move forward now;) For anyone else, this is what worked: form = SQLFORM(db.games, hidden=dict(status="active")) On Monday, July 29, 2013 7:23:30 PM UTC-4, lesssugar wrote: > > Take a look at the bo

[web2py] Uploading data as blob -- hitting a brick wall

2013-07-29 Thread Joe Barnhart
I'm hitting a brick wall when trying to convert my table (under PostgreSQL) to use "blob" storage. The problem seems to be that web2py doesn't properly recognize and initialize the blob field. For example, when I tried this: db.define_table("fileobject", Field("upl

[web2py] Re: Found solution! cgi.FieldStorage problem exposed

2013-07-29 Thread Joe Barnhart
Hi Massimo -- Yes, that should to it. I have a live cgiFieldStorage object at the breakpoint and when I enter "x is not None" reports True. -- Joe P.S. still having upload issues, but that's a separate thread! On Monday, July 29, 2013 5:46:29 AM UTC-7, Massimo Di Pierro wrote: > > Good catch

[web2py] Re: Setting hidden fields with custom SQLFORMs

2013-07-29 Thread lesssugar
Take a look at the book: http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=hidden+fields#Hidden-fields So try defining your hidden field with *hidden *attribute: SQLFORM(..., hidden=dict(hidden_field_name=hidden_field_value)) It should work. On Monday, July 29, 2013 6:4

[web2py] Re: How write subquery of LEFT JOIN using DAL?

2013-07-29 Thread lesssugar
Probably the most comfortable way to do it is to use *executesql:* http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#executesql * * On Monday, July 29, 2013 12:00:20 PM UTC+2, Denis Rykov wrote: > > Please help me to write the following SQL query using DAL: > > SELECT ind

[web2py] Re: bootstrap 3

2013-07-29 Thread Massimo Di Pierro
+1 On Monday, 29 July 2013 14:03:11 UTC-5, Niphlod wrote: > > try it and report any findings: I didn't tried it yet. Anyway, bootstrap > is not "part of web2py". I assume that with the final release of bootstrap > 3 someone will present an "adjusted" welcome application that embeds it. > > On Mo

[web2py] controller return list instead of string or dict

2013-07-29 Thread Matt
Hi, We're running into an issue with our restful api where a certain method is returning a json string (eg: " ['one', 'two', 'three'] "), however web2py wants to render this as a string even when the request.extension is forced to json, and the response.view is forced to generic.json. I've track

Re: [web2py] Re: How do I apply placeholder text to web2py forms?

2013-07-29 Thread Richard Vézina
I already suggest this... But we could make a Field() methode that let insert HTML attribute to a field like html5 attributes or any other attribute without the obligation to create a custom widget or manipulate a generated form, etc. Ex.: Field('input', 'type', ..., html_attr=dict('_placeholder'

[web2py] Re: bootstrap 3

2013-07-29 Thread Niphlod
try it and report any findings: I didn't tried it yet. Anyway, bootstrap is not "part of web2py". I assume that with the final release of bootstrap 3 someone will present an "adjusted" welcome application that embeds it. On Monday, July 29, 2013 8:46:02 PM UTC+2, VP wrote: > > Can I simply swap

[web2py] Re: bootstrap 3

2013-07-29 Thread VP
Can I simply swap with web2py's bootstrap files , expecting no technical glitches? On Monday, July 29, 2013 9:01:47 AM UTC-5, Niphlod wrote: > > just to inform everybody that 3.0 is coming out > http://twitter.github.io/bootstrap/ > -- --- You received this message because you are subscribed

[web2py] Re: A good py Logger Lib that works with web2Py (like Log4J)

2013-07-29 Thread Derek
Take a look at errormator. I use it in some of my non-web2py apps simple enough. On Sunday, July 28, 2013 5:51:28 PM UTC-7, Jake Angulo wrote: > > > Hi Guys, > > I develop using vi & notepad++ and find it very difficult to debug with > these limited tools. I debug by runtime output / stdout &

Re: [web2py] Re: A good py Logger Lib that works with web2Py (like Log4J)

2013-07-29 Thread Richard Vézina
I heard that "pdb" is nice! Richard On Mon, Jul 29, 2013 at 10:01 AM, Niphlod wrote: > the standard logging module is pretty fine !?!?!? > > > On Monday, July 29, 2013 2:51:28 AM UTC+2, Jake Angulo wrote: >> >> >> Hi Guys, >> >> I develop using vi & notepad++ and find it very difficult to debu

Re: [web2py] admin password

2013-07-29 Thread dhmorgan
"python web2py.py" -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/g

[web2py] Re: ordering request.vars for PayPal IPN

2013-07-29 Thread SimonD
Neil, Sorry it has taken a while to respond. Been away.. Your code is very useful, and helps, thanks. The ordering of the vars is, according to PayPal, important (and they say so often). However, as you say, this is really not the case. Frustrating. - but it was a good opportunity for me to lear

Re: [web2py] how to get the ip of the server

2013-07-29 Thread Jonathan Lundell
On 29 Jul 2013, at 6:46 AM, Eduardo Cruz wrote: > How can I get in the view the ip of the web2py server? > > Try request.env.server_addr -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving

[web2py] Re: I need to learn something else (besides Python) for develop a app using Web2py?

2013-07-29 Thread Anthony
On Sunday, July 28, 2013 11:23:41 PM UTC-4, Jorge Caicedo wrote: > For programming in web2py I just need to know Python? You need to know Python, but you also need to know how web2py works, so please read the book. > (I'm a beginner with Python but when I try to do something in WEB2PY it >

[web2py] Re: I need to learn something else (besides Python) for develop a app using Web2py?

2013-07-29 Thread Niphlod
did you try the web2py book ? start from here http://web2py.com/books/default/chapter/29/02/the-python-language On Monday, July 29, 2013 5:23:41 AM UTC+2, Jorge Caicedo wrote: > > For programming in web2py I just need to know Python?, (I'm a beginner > with Python but when I try to do something

[web2py] Re: how to create a readonly connection to remote db

2013-07-29 Thread Niphlod
there's no default "read-only" in client-side libraries that connects to a database. What do you need specifically ? On Monday, July 29, 2013 1:49:11 PM UTC+2, Monika Yadav wrote: > > how to create a readonly connection to remote db without using > executesql...i want to use the dal properties >

[web2py] bootstrap 3

2013-07-29 Thread Niphlod
just to inform everybody that 3.0 is coming out http://twitter.github.io/bootstrap/ -- --- 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+unsubscr...@goo

[web2py] Re: A good py Logger Lib that works with web2Py (like Log4J)

2013-07-29 Thread Niphlod
the standard logging module is pretty fine !?!?!? On Monday, July 29, 2013 2:51:28 AM UTC+2, Jake Angulo wrote: > > > Hi Guys, > > I develop using vi & notepad++ and find it very difficult to debug with > these limited tools. I debug by runtime output / stdout & doing a lot of > print. > > Is t

[web2py] how to get the ip of the server

2013-07-29 Thread Eduardo Cruz
How can I get in the view the ip of the web2py server? -- --- 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+unsubscr...@googlegroups.com. For more option

[web2py] Re: Found solution! cgi.FieldStorage problem exposed

2013-07-29 Thread Massimo Di Pierro
Good catch. I changed "if value" into "if value is not None". Does that fix the problem? On Sunday, 28 July 2013 22:50:14 UTC-5, Joe Barnhart wrote: > > Guess what?? > > I've found this bug again -- this time in the DAL module! Here is the > affected code, it's a part of the Table class: > >

[web2py] connecting web2py application to remote db

2013-07-29 Thread Monika Yadav
how can i connect a web2py application to a remote database and use it for fetching information without creating any tables in it and without defining any tables in it -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from

Re: [web2py] admin password

2013-07-29 Thread Kathryn Gray
Hi there I have a similar issue, on the admin login page my password isn't accepted although i'm quite confident it is correct. When i enter something random an the orange bar show "invalid password", when i enter my password the orange bar is blank but it does not proceed to another page. An

[web2py] how to create a readonly connection to remote db

2013-07-29 Thread Monika Yadav
how to create a readonly connection to remote db without using executesql...i want to use the dal properties -- --- 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

Re: [web2py] Re: Starting web2py on shell generates - Temporarily down for maintenance

2013-07-29 Thread Jake Angulo
On Fri, Jul 26, 2013 at 7:42 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Login into http:///admin > You will find that the app you are trying to access (/ can be "welcome" or > "init") is disabled. An app can be enabled or disabled from the web > interface. When it is disabled

[web2py] A good py Logger Lib that works with web2Py (like Log4J)

2013-07-29 Thread Jake Angulo
Hi Guys, I develop using vi & notepad++ and find it very difficult to debug with these limited tools. I debug by runtime output / stdout & doing a lot of print. Is there a good Py logging library (like log4j in java) that also works with web2py? Appreciate any recommendeations. Rgds, -- --

[web2py] MYSQL + DAL + RESTful web service

2013-07-29 Thread Miguel Cabo
I have the following error when I make this request: *https://localhost/example/api/rest/PERSONS_has_ANIMALS* * * type 'exceptions.AttributeError'> 'Table' object has no attribute '_id' Versionweb2py™Version 2.5.1-stable+timestamp.2013.06.06.15.39.19PythonPython 2.7.3: /usr/bin/python (prefix: /u

[web2py] I need to learn something else (besides Python) for develop a app using Web2py?

2013-07-29 Thread Jorge Caicedo
For programming in web2py I just need to know Python?, (I'm a beginner with Python but when I try to do something in WEB2PY it doesn't work like Python) nota=7 > print 'Nota:' > print nota > print '' > if nota>=9: > print 'Promocionado' > elif nota>=4: > print 'Regular' > else: > pr

[web2py] Re: Help with full text search plugin

2013-07-29 Thread Massimo Di Pierro
yes. As soon as it works we can make it a module. On Saturday, 27 July 2013 12:49:15 UTC-5, Alan Etkin wrote: > > https://github.com/mdipierro/web2py-haystack >> > > Works fine with sqlite and a trivial case > > ## Haystack insert test ## > Test time: 0:00:00.398590

[web2py] How write subquery of LEFT JOIN using DAL?

2013-07-29 Thread Denis Rykov
Please help me to write the following SQL query using DAL: SELECT indicator.*, v.date, v.value FROM indicator LEFT JOIN ( SELECT value.value, _.indicator, date FROM (SELECT indicator, min(client_date) AS "date" FROM value WHERE created_by = 1 GROUP BY indicator) _ LEFT JOIN va

Re: [web2py] Re: Help with full text search plugin

2013-07-29 Thread Michele Comitini
The haystack [IMHO "needle_finder" gives a better idea of the objective :-)] could be extended to support this and also sqlite FTS4, mysql FTS, that would allow one to choose between a dedicated external component or keep using the db already in place. 2013/7/29 Johann Spies > Postgresql has pow