[web2py] plugin sortable, connect lists

2010-08-02 Thread Giuseppe Luca Scrofani
I've used the sortable plugin ( http://www.web2py.com/plugins/default/sortable ) in some projects and I think it is very useful to arrange list of items in database. What I miss is the "connect list" functionality ( http://jqueryui.com/demos/sortable/#connect-lists ) of jQuery UI. What I think can

[web2py] plugin sortable, connect lists

2010-07-25 Thread Giuseppe Luca Scrofani
I've used the sortable plugin  ( http://www.web2py.com/plugins/default/sortable ) in some projects and I think it is very useful to arrange list of items in database. What I miss is the "connect list" functionality ( http://jqueryui.com/demos/sortable/#connect-lists ) of jQuery UI. What I think can

[web2py] plugin sortable, connect lists

2010-07-25 Thread Giuseppe Luca Scrofani
I've used the sortable plugin ( http://www.web2py.com/plugins/default/sortable ) in some projects and I think it is very useful to arrange list of items in database. What I miss is the "connect list" functionality ( http://jqueryui.com/demos/sortable/#connect-lists ) of jQuery UI. What I think can

Re: [web2py] CKEditor and sanitize

2010-07-08 Thread Giuseppe Luca Scrofani
This worked perfectly :)

[web2py] Remove "lost password" link from the standard login form

2010-07-08 Thread Giuseppe Luca Scrofani
Hi all, how can I remove this function? I've tried with auth.settings.actions_disabled.append('request_reset_password') in the user(): controller, but this remove only the target page, not the link in itself from the login form... Some ideas?

[web2py] CKEditor and sanitize

2010-07-08 Thread Giuseppe Luca Scrofani
Hi all, I've "installed" CKEditor as instructions in http://www.web2pyslices.com/main/slices/take_slice/18 But when I save some html it is not rendered in the output as html, it is rendered as text with html tags. I want to disable this "sanitizing" feature, but I cant find how... Please, could you

Re: [web2py] Re: How to insert _blank in A html helper

2010-07-03 Thread Giuseppe Luca Scrofani
This solved my problem, thanks :) > Like this: > > A( B('link name'),  _href = URL(r=request, f='show', args=x.id), > _target = "_blank" ) > > Hope this helps, > - Yarko

Re: [web2py] Re: Change "submit" text in generic submit button

2010-07-03 Thread Giuseppe Luca Scrofani
Thanks this worked well :)

Re: [web2py] Re: Filtered search of db by dropdown selection

2010-07-03 Thread Giuseppe Luca Scrofani
Thanks friend, I view this mail now, too late unfortunately. But I saved this for future use. Thanks again :) On Thu, Jul 1, 2010 at 7:45 PM, Candid wrote: > model: > > db = DAL('sqlite://storage.sqlite') > > db.define_table('thing', Field('category'), Field('year', 'integer')) > > db.thing.categ

[web2py] Change "submit" text in generic submit button

2010-06-30 Thread Giuseppe Luca Scrofani
Hi where I have to look to change the default "submit" string of generic submit button in something else? I'm not interested in localizing the application (it have to remain english) but if it is the only way, how I can do this? Creating a "en" locales?

Re: [web2py] Re: How to insert _blank in A html helper

2010-06-30 Thread Giuseppe Luca Scrofani
Sorry for the typo, it is exactly a _blank target attribute desidered output link name

[web2py] How to insert _blank in A html helper

2010-06-30 Thread Giuseppe Luca Scrofani
I can't find this little piece of information anywhere in the cyberspace... a simple plain link with html helpers: A(B('link name'), _href=URL(r=request, f='show', args=x.id)) How to put a _black attribute inside this?

[web2py] Filtered search of db by dropdown selection

2010-06-30 Thread Giuseppe Luca Scrofani
After two days of attempts I still can't figure it out. What I want is a set of dropdown selection, every one with some options and a submit button. When options are selected and submit pressed it start a search in a db table and return the list of all occurrence meeting all selected criteria... So

Re: [web2py] Re: Web2Py Online Directory App

2010-06-28 Thread Giuseppe Luca Scrofani
>From all the searches and informations viewed and readed I can say it seems to not exist yet an appliance or tutorial for this specific task. However it dont seem hard to make what you want. Maybe you can try and in case of problems ask for some guidance. gls >> Has anyone completed an online di

Re: [web2py] Re: Field present in default/user/profile and not in default/user/register. How?

2010-06-27 Thread Giuseppe Luca Scrofani
I don't have a profile controller, just the default user(): I have to create a profile(): def in default.py and set this option in this new def? Thanks for answering :) > db.auth.myfield.readable = False > > In your profile controller,  set it to True;

[web2py] Field present in default/user/profile and not in default/user/register. How?

2010-06-27 Thread Giuseppe Luca Scrofani
Hi all, as subject I have to make a custom field of auth.user visible only in profile form but not in register form. There is an option to make this happen?

Re: [web2py] Re: Forms field spaced by option in db model?

2010-06-27 Thread Giuseppe Luca Scrofani
Thanks this little dirty trick its exactly what I needed :D

[web2py] Forms field spaced by option in db model?

2010-06-26 Thread Giuseppe Luca Scrofani
Hi, something like this is possible? Automatic generation of forms by db is just too lazy and beautiful to make me manually construct them just for some space in between fields... db.define_table('example', Field('one'), Field('two'), Field('three'), (insert a br here), Field('

[web2py] Newsletter apply form in every page by include, how?

2010-06-26 Thread Giuseppe Luca Scrofani
Hi all, I have to {{include "sidebar.html"}} in every page of a site, and one of the elements in this include is a little form (a text field and a submit button) where user insert email address and apply for a newsletter, effectively writing a record in db.newsletter. How can I do this without a co

Re: [web2py] Re: elFinder-web2py , Filemanager for Web2py!

2010-06-25 Thread Giuseppe Luca Scrofani
Even following your indication I can't make it work :( I will retry after dinner. I am surprised of how this project seems not interesting to the others... It is very strange, In my humble, I think this have to be shipped by default in web2py...

Re: [web2py] elFinder-web2py , Filemanager for Web2py!

2010-06-24 Thread Giuseppe Luca Scrofani
Please ignore my previous message (written before you replied), now I will try to make your suggested changes

Re: [web2py] elFinder-web2py , Filemanager for Web2py!

2010-06-24 Thread Giuseppe Luca Scrofani
I re-tried, managed to install extracting files in the correct folder, but now Im stuck "Note URL (Both in View and web2py_elcon) need to be change to your host:port (i did with port 8080)" Can you please explain a little more, what I've to change and where? >From what I understand seems to edit

Re: [web2py] elFinder-web2py , Filemanager for Web2py!

2010-06-24 Thread Giuseppe Luca Scrofani
Yeah!!! Great, this is super-useful! I was not able to make it work yet it will not install as an appliances and extracting the application folder in the web2py didnt work either. Its because some parts are not ready yet? I cant wait to see this in my application list in web2py! gls

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Giuseppe Luca Scrofani
Jason I've tried step by step your list of actions in exact order and it worked! Thanks friends, another problem resolved. Now I have a working remote web2py installation! Now I see a different world... vps.net seem a very good service, it is my first dedicated server.

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Giuseppe Luca Scrofani
I've looked in /admin/default/errors/admin and there is nothing. Until now I've tried to upload appliances, but now I've tried also to create one, message is "unable to create application x" (x is for name of application obviously) I suppose it is a permission problem, web2py seem unable to create

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Giuseppe Luca Scrofani
In the installation script used: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh there is this at line 62: chown -R www-data:www-data web2py I tried to do "chown -R www-data web2py" in home dir and restart apache as suggested but the situation is not changed, Im sti

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-21 Thread Giuseppe Luca Scrofani
So simple and so effective :D Thanks my hero. Im now able to login in the admin panel with the same root password of the system, but Im unable to install any appliances, made by me or dowloaded from the appliance archive and uploaded to the node. It simply response a flash popup telling "unable to

[web2py] Native Web2Py/CherryPy Server. It is so bad?

2010-06-21 Thread Giuseppe Luca Scrofani
Hi, as I wrote in another thread Im installing web2py on vps.net and I have some problem, maybe with apache... I dont know, I hope someone answer while I serch some info. But now my question is, I read in manual the included wsgi server in web2py it is not intended for production use due to lack of

[web2py] Fresh install on vps.net, forbidden on admin/default/index

2010-06-21 Thread Giuseppe Luca Scrofani
Hi all, I've just installed my first remote copy of web2py, I acquired a node on vps.net, installed the ubuntu LAMP image, connected via ssh to the shell and installed all the software via this very useful (and beatiful!) script: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-u

Re: [web2py] Re: Web2py free hosting?

2010-06-21 Thread Giuseppe Luca Scrofani
I've get it wrong, on GAE file uploading works, but one has to modify the application to charge the uploaded files on the database. Idem for sessions and tickets, personally I don't like this, so I will stay away from GAE (for this and the big query limitations, I cant make too much things), but is

Re: [web2py] Re: Passing data to included views

2010-06-20 Thread Giuseppe Luca Scrofani
Ok, then it is possible to include a view served by a controller? For example something like this: {{include 'default/block1.html'}} I tried many combination to obtain this but as now never worked. The first proposed solution would be much more vertatile but... > You cannot do what you ask but y

Re: [web2py] Re: Web2py free hosting?

2010-06-20 Thread Giuseppe Luca Scrofani
Dont even mention the servers are online five minutes yes and ten minutes not, the horrible super crapped-out ajax overloaded left menu dont let me "one click install" web2py 'cause it is not rendered well on the last firefox version (?!?!?!) and when i try to open with another computer with window

Re: [web2py] Re: web2py suggestions

2010-06-20 Thread Giuseppe Luca Scrofani
I am a totally noob so I am not the best person to tell this, however, I think web2py is the best python software I ever tried, after python itself. I tried only django in this field before, my experience in limited, but I just can't imagine something better for the development of web application.

Re: [web2py] Re: Web2py free hosting?

2010-06-19 Thread Giuseppe Luca Scrofani
Then Im missing something. Everywhere I read of this limitations... Have you made some specific changes to make all this things works or you get it ready out of the box? Sometimes I feel happy to be wrong, so tell me Im completely wrong about GAE :D > for my web2py apps on GAE I have used the admi

Re: [web2py] Re: Any Server side File management appliance in python?

2010-06-19 Thread Giuseppe Luca Scrofani
Im not this good to be of any help, but Im very interested in this conversion, just to let you know, something like this integrated in web2py would be SUPER > It Seems The Right One > > But i tried to integrate into web2py , only working partially. > I know it is suppose to run as CGI script (as i

Re: [web2py] Re: form in layout.html?

2010-06-19 Thread Giuseppe Luca Scrofani
I need this solution too... Maybe with some help from javascript? Some days ago testing various appliances from the repository I encountered an example of submit button, when clicked it will open a dialog with a personalized message. I will try to find it again... (the typical flash response howev

[web2py] Passing data to included views

2010-06-19 Thread Giuseppe Luca Scrofani
Im searching this information in manual, at this moment no luck... It is possible to pass a string or a dictionary to an included views? Something like this: --- layout.html {{include 'block1.html' 'hello from block 1'}} {{include 'block2.html' 'hello from block 2'}} {{include 'block3.html' 'hell

Re: [web2py] Re: Insert current datetime in layout.html

2010-06-19 Thread Giuseppe Luca Scrofani
Thanks friend :) > If you want this variable globally available for all views then put > `giugno = 6' into a model. > Or if you only want this variable for a certain view then pass it > explicitly in the controller with `return dict(giugno=6, ...)'

Re: [web2py] Re: Select the most recent entry from multiple tables

2010-06-19 Thread Giuseppe Luca Scrofani
Hey thanks, it On Tue, Jun 15, 2010 at 8:23 AM, mdipierro wrote: > My bad > > dataset_three=(dataset_one|dataset_two).sort(lambda row: > row['sortfilename']) > > On Jun 14, 9:52 am, Giuseppe Luca Scrofani > wrote: >> I've tried, I get this when trying t

Re: [web2py] Web2py free hosting?

2010-06-19 Thread Giuseppe Luca Scrofani
A quick update, the site tell signup is down: "We're sorry, but signups are down until Saturday, June 19th so we can catch up on a creation queue backlog. Please check back on Saturday!" (source http://www.heliohost.org/home/wrapper-mainmenu-8) 19ht June is today... Eh? There is another problem

Re: [web2py] Web2py free hosting?

2010-06-19 Thread Giuseppe Luca Scrofani
Hey Jason you are a very nice person. Ill' consider your generous offer if I dont find a suitable free hosting. I need only a week, so your proposal is perfect for me. Lets see what is the situation with free hosting first. >From my searches, for now there is this: http://www.heliohost.org seem wor

[web2py] Web2py free hosting?

2010-06-19 Thread Giuseppe Luca Scrofani
Hi, my little first (serious) application is ready, now I have to place it somewhere in the 'net. Before paying for hosting services, can I try on a free host? Something simple and fast? I know python should be supported, but it is sufficient? I will be happy to know some free host service name whe

Re: [web2py] Re: Select the most recent entry from multiple tables

2010-06-14 Thread Giuseppe Luca Scrofani
I've tried, I get this when trying to add dataset_one and two: TypeError: unsupported operand type(s) for +: 'Rows' and 'Rows' I "feel" there is something to do before adding, like convert to another datatype, but my incompetence limits me... (I hope I dont stretch my luck with all this question

Re: [web2py] Re: Insert current datetime in layout.html

2010-06-14 Thread Giuseppe Luca Scrofani
Thanks for answering friends, it worked! Now, how I can setup a condition block to transform the digit returned by {{=request.now.month}} (example: 6) into something like "giugno" (june in italian language)? > e.g. (paste this on the view) > > month: {{=request.now.month}} > day : {{=reque

[web2py] Insert current datetime in layout.html

2010-06-13 Thread Giuseppe Luca Scrofani
Hi, how I can insert in a page not served by a controller (think layout.html in the welcome application) current day and month? I've tested something like this {{import datetime; datetime.datetime.now()}} but even if this worked it will be horrible (import datetime every single page load...)

[web2py] Select the most recent entry from multiple tables

2010-06-13 Thread Giuseppe Luca Scrofani
Hi all, it is possible to make a query to the db and sort the elements of multiple tables by date? I will try to be more specific with an example, I have this controller, the structure of the model should be evident: def index(): # This is the index controller dataset_one = db().select(db.da

Re: [web2py] Re: Administrative interface available on local network

2010-06-10 Thread Giuseppe Luca Scrofani
Thanks Candid and Massimo for answering, I've tried your suggestion, Massimo, and it worked. I've replaced (starting from line 12 in applications/admin/models/access.py) else: hosts = (http_host, socket.gethostname(), socket.gethostbyname(http_host), '::1','127.0.0.1'

[web2py] Administrative interface available on local network

2010-06-10 Thread Giuseppe Luca Scrofani
Im sorry, I can't find how to make the administrative interface available on my local network. I know this is a security risk but in a production environment it can be a necessity... Maybe a command line option? Thanks

Re: [web2py] I have to make a new site, example appliance needed

2010-06-09 Thread Giuseppe Luca Scrofani
Hi Jason, thanks for answer. In a hurry I just exposed my problem in too basic terms. I have started extending the wiki example in the web2py book, it seem to be what I need. My request was for a sort of "template"... I founded it, so thanks. gls

[web2py] Typo error in the official web2py book

2010-06-09 Thread Giuseppe Luca Scrofani
I dont know if this is the correct place to post this, but I have found a typo in http://web2py.com/book/default/section/3/9 In the wiki code presented (first block, the db model) at lines 39 and 48 a function parameter (an empty string) is not correctly enclosed causing a syntax error. Or maybe I

[web2py] I have to make a new site, example appliance needed

2010-06-09 Thread Giuseppe Luca Scrofani
Hi all, I have to made a new website/webapplication. It is structured as following: Home page (header, a little login form, several text and images, footer) Page 1 (not too different from home page...) Page 2 (idem) Page 3 (idem) Control panel to manage contents of all other pages (insert text, im

Re: [web2py] Re: A basic problem about threading and time consuming function...

2010-05-27 Thread Giuseppe Luca Scrofani
Thanks all for answering friends! I've extracted some good info from this discussion, and the solution proposed by Massimo work well :)

[web2py] A basic problem about threading and time consuming function...

2010-05-25 Thread Giuseppe Luca Scrofani
Hi all, as promised I'm here to prove you are patient and nice :) I' have to make this little app where there is a function that read the html content of several pages of another website (like a spider) and if a specified keyword is found the app refresh a page where there is the growing list of "m

Re: [web2py] monetize web2py anybody?

2010-05-24 Thread Giuseppe Luca Scrofani
Count me in! This is a very good idea. How I can contribute in this starting phase? It is possible to make a list of the first task involved in the creation of this business? A dedicated wiki, maybe? On Mon, May 24, 2010 at 1:18 AM, mdipierro wrote: > I have some problems: > > 1) people ask me to