Re: [web2py] Re: can we use javascript in sqlform How?

2011-07-16 Thread sagar nigade
thanks Anthony,

On Fri, Jul 15, 2011 at 9:18 PM, Anthony abasta...@gmail.com wrote:

 The id of the 'type' widget will be 'template_properties_type', so you can
 add JS to the page to listen for the selection event and display/create a
 text box whenever 'custom' is selected. If you want the content of the text
 box saved in the table, you should add a field for it, and initially set
 that field as hidden in the form (and use JS to unhide it).

 Anthony

 On Friday, July 15, 2011 11:42:04 AM UTC-4, sagar wrote:

 I am using sql form
 db.py
 data=db.define_table('**template_properties',
 Field('temp_uid', 'string',default=uuid.uuid1(),
 writable=False, readable=False),
 Field('template_name', default=''),
 Field('deadline','datetime'),
 Field('type','string',
 requires=IS_IN_SET(['onetime',**'daily','weekly','custom'])),
 )


 I am using sql form

 def add():
  form=SQLFORM(db.template_**properties)


 I have to add extra textbox once user select custom  value for type
 field...









Re: [web2py] Re: Get date from datetime with DAL

2011-07-16 Thread Angelo Compagnucci
 that dirty hack fails for the MSSQL adapter in 1.97.1:

Well yes, I called it a dirty hack!

I'm looking for a function to extract date and time from a datetime db
side and I think I found one for every database supported by the DAL,
I'm in the process of review my research.

I'm intrugued in the process to add new date() and time() functions to
Filed class.

 rr=db(db.test).select(db.test.data)
 print rr[0]
 Row {'data': datetime.datetime(2011, 7, 15, 14, 34, 18)}

 rr=db(db.test).select(db.test.data[:10])
 print rr[0]
 Row {'_extra': Row {'SUBSTR(test.data,1,(11 - 1))': u'2011-07-15'}}

Yes, I noticed that, a substring command returns a string, and not a
date object ... But for me it will suffice.

Thank you!


[web2py] superfish.css overridden : menu sent to back of jqgrid

2011-07-16 Thread Vineet
Hello List !
I am trying to facelift my app by completely overriding the
superfish.css.
In most of the forms, the new-look menu is working superbly.
But only in those forms containing jqgrid or dataTable controls,
the menu is sent to back to the table control.
Tried by setting z-index: property of div containing the menu at
higher value. But no success.
I am wondering why this behaviour (only in case of jqgrid 
dataTable).

Anybody got any idea?

(If the problem description is too short, pl. tell me sothat I can
post the code in this thread).

Thanks.
:-)


[web2py] Deny IP adress?

2011-07-16 Thread toan75
Hi all,
I use apache  iis server.
How to block ip address to access the website?

Thanks in advance.



[web2py] Re: web2py - Best Practice

2011-07-16 Thread Anthony
In addition to full applications, we should also consider building plugin 
functionality that would be widely useful. Two things that come to mind:

   - Full-text search abstraction layer -- something that could potentially 
   work with multiple search backends, similar to http://haystacksearch.org/and 
   http://code.google.com/p/django-fts/. 
   - Async realtime/chat functionality -- maybe build on the 
   
comet_messaging.pyhttp://code.google.com/p/web2py/source/browse/gluon/contrib/comet_messaging.pyapproach,
 or look into a greenlet approach, as described here: 
   http://bottlepy.org/docs/dev/async.html.

 
Anthony
 

On Wednesday, July 13, 2011 1:45:18 AM UTC-4, nic wrote:

 Dear friends, 

 I am a huge web2py fan and would like to propose an idea to the 
 community. 

 I understand that web2py is a development environment and has it’s 
 roots as an educational platform. One of the things that I have 
 personally found most useful are the free appliances. However as 
 web2py has matured over time a lot of these have become dated and as 
 new developments have emerged I have often been confused about best 
 practices going forward. 

 I would like to propose that we develop a suite of products (open 
 source of course) based on the best practices of web2py that would be: 

 Useful and usable by non-programmers 
 Serve as a focal point for the community on just how great web2py 
 could be 
 Serve as a template for developers 

 To be clear the idea is to create a separate project from web2py 
 itself and then find the best of breed products and develop them in 
 web2py. Things like: 

 A Wiki / Blog / CMS / Forum 
 An Online Store 
 A Personal Accounting System 
 A Media Center 
 etc ... 

 The focus would be on producing complete usable and beautiful 
 applications. 

 I feel that the creation of a separate project will have some 
 important advantages such as: 

 We can create a “brand” around the products. 
 It will not “hijack” the core web2py focus. 
 Can have separate focus such as functionality and look and feel 
 Can include complimentary, tested projects such as open source icons 
 and skins 
 Can have it’s own development cycle, (eg release every 6 months) 
 Can have it’s own repositories etc. 

 Ultimately the products could be made available by web hosts just by 
 the click of a button just like the php ones are now. 

 I am very interested in the thoughts of the community and if there is 
 interest I will move to the next step and create a site (probably on 
 GAE) for further discussion such as: 

 decide on a name 
 decide on goals 
 decide on processes 
 find a home 
 decide on products 
 etc ...



[web2py] Comet Server

2011-07-16 Thread Re Fabro
Guys, if you wanted to know how to web2py server send a message when he
wants to the client.
I wish I could do this using that comet h when the server sends pro client
without request.
I know of to use WebSocket q ... Sussa do is ... but not all browsers accept
it.

*
Thx,
Renato Fabro*

C2C Balloon - Humanizing Technology
+55 (19) 3289-9610
http://www.c2cballoon.com


[web2py] How can i find Syntax

2011-07-16 Thread Neeraj Charne
I am new to Web2py and not tried Python so how can i get the material
containing useful syntax.
should i learn Python first.
I am confuse where to start.

Please guide me


[web2py] Re: Deny IP adress?

2011-07-16 Thread Massimo Di Pierro
http://www.webmasterworld.com/forum92/2340.htm

On Jul 16, 9:44 am, toan75 toa...@gmail.com wrote:
 Hi all,
 I use apache  iis server.
 How to block ip address to access the website?

 Thanks in advance.


[web2py] Re: How can i find Syntax

2011-07-16 Thread Massimo Di Pierro
You need a little bit of python syntax. Everything you need is in
chapter 2 of the book:

http://www.web2py.com/book/default/chapter/02

You can find more python documentation, if you need later, on the
python.org page.

Massimo

On Jul 16, 3:43 am, Neeraj Charne neeraj...@gmail.com wrote:
 I am new to Web2py and not tried Python so how can i get the material
 containing useful syntax.
 should i learn Python first.
 I am confuse where to start.

 Please guide me


[web2py] Re: Comet Server

2011-07-16 Thread Anthony
Maybe check out this three part tutorial: 
http://greg.thehellings.com/2011/04/web2py-websockets-and-socket-io-part-i-basic-display/.
 
The third part (
http://greg.thehellings.com/2011/05/web2py-websockets-and-socket-io-part-iii-socket-io/)
 discusses 
usage of Socket.IO to handle methods other than WebSockets.
 
Anthony

On Friday, July 15, 2011 9:33:23 PM UTC-4, Renato Fabro wrote:

 Guys, if you wanted to know how to web2py server send a message when he 
 wants to the client.
 I wish I could do this using that comet h when the server sends pro client 
 without request.
 I know of to use WebSocket q ... Sussa do is ... but not all browsers 
 accept it.

 * 
 Thx,
 Renato Fabro*

 C2C Balloon - Humanizing Technology 
 +55 (19) 3289-9610
 http://www.c2cballoon.com



Re: [web2py] request - mmodal examples

2011-07-16 Thread Ismael Serratos
Same here any example?

On Fri, Jul 15, 2011 at 7:23 PM, niknok nikolai...@gmail.com wrote:

 I just discovered this modal plugin: web2py.com/plugins/default/
 mmodal

 Sorry for being a little slow, but would someone please post an
 example of how I can use crud inside modals?


Re: [web2py] Re: Good jQuery UI Library

2011-07-16 Thread Phyo Arkar
Yeah Ross,
I am too having trouble starting with QooXDoo , it is totally javascript.

And We cannot put Javascript files into View (Can We? have not tested)
How can we integrate them well with web2py template? I hate writing
everything inside script tag.
Also currently i have used JQUI plugin jqGrid for all my table needs ,
and would be some work integrating jqGrid inside QxD.



On 7/16/11, Ross Peoples ross.peop...@gmail.com wrote:
 If you were to remove jQuery and replace with QooXDoo, you would have to
 rewrite the AJAX, LOAD, and JS validation code. Basically, everything in
 web2py_ajax.js


Re: [web2py] Re: Good jQuery UI Library

2011-07-16 Thread Anthony
On Saturday, July 16, 2011 3:31:07 PM UTC-4, Phyo Arkar wrote: 

 Yeah Ross,
 I am too having trouble starting with QooXDoo , it is totally javascript. 

 And We cannot put Javascript files into View (Can We? have not tested)
 How can we integrate them well with web2py template?

What do you mean? What are you trying to do? Do you have an example? (Note, 
I'm not at all familiar with QooXDoo coding.)
 
Anthony


[web2py] Re: Good jQuery UI Library

2011-07-16 Thread Mengu
the thing is when you have qooxdoo you don't need anything else.
things in web2py_ajax.js not working is not a big deal when you are
working with qooxdoo as it has its own libraries.

if you guys face a problem with integrating qooxdoo and web2py, i can
surely put up a simple application.

On Jul 15, 10:37 pm, Ross Peoples ross.peop...@gmail.com wrote:
 If you were to remove jQuery and replace with QooXDoo, you would have to
 rewrite the AJAX, LOAD, and JS validation code. Basically, everything in
 web2py_ajax.js


[web2py] Re: Good jQuery UI Library

2011-07-16 Thread pbreit
Getting back to the original question, it would be nice to figure out a good 
option or two for more functional UI elements. JqUI seems like the obvious 
choice but I am not a big fan of it. Are there any others that have gained 
decent usage?


Re: [web2py] Re: Getting a reproducible web2py internal error

2011-07-16 Thread howesc
i'm not a sqlite junkie, so i don't know the exact syntax, but ssh in to the 
box and launch the sqlite interactive console, connect it to the database 
file created by web2py and see if you can view/update/delete records by 
writing raw SQL statements.  perhaps the errors in the console will be more 
easier to understand than the web2py wrapped errors.

cfh


[web2py] New python web framework: Brubeck

2011-07-16 Thread Luther Goh Lu Feng
From the website http://brubeck.io/:

Brubeck is a flexible Python web framework that aims to make the
process of building scalable web services easy.

The Brubeck model resembles what companies build when they operate at
large scale, but working with it will feel like what you're used to
from other frameworks.

No confusing callbacks
No database opinions
Built-in distributed load balancing

Brubeck gets by with a little help from it's friends:

Mongrel2: lean  fast, asynchronous web serving
Eventlet: non-blocking I/O  coroutines
ZeroMQ: fast messaging  supports most languages
DictShield: data modeling  validation with no database opinions