[web2py] Re: Hyperlink urls in comments

2010-11-04 Thread annet
Hi Bruno, The easy way to render the 'http://' urls in web2py, is using markmin. lets say you have a text text = ths is a text with a linkhttp://www.rochacbruno.com.br; To render the link as an Hyperlink you can use markmin. {{=MARKMIN(text)}} On October 15 I posted the following

[web2py] CRUD select with autosort headers

2010-11-04 Thread baloan
Hello, is there a way to make CRUD.select() build a table that allows to sort (alternately ascending, descending) when clicking the column header? In 1.87.3 the column headers are non-clickable. Best regards, Andreas balo...@gmail.com

[web2py] Re: validators order

2010-11-04 Thread DenesL
On Nov 3, 3:52 pm, andrej burja andrej.bu...@gmail.com wrote: hi why is order of validators important? i have db.tecaj.voditelj.requires=IS_NOT_EMPTY() db.tecaj.voditelj.requires=IS_IN_DB(db,'person.id','%(name)s') why does putting the IS_NOT_EMPTY() at the end doesn't produce dropdown

[web2py] Different register procedures multiple databases.

2010-11-04 Thread annet
In an application I defined the following connection string and tables: db = DAL('postgres://...) auth.settings.table_user = db.define_table('auth_user', Field(...), Field('company_id',db.company,default='',notnull=True,ondelete='CASCADE',writable=False,readable=False), Field(...))

[web2py] CRON doesn't work

2010-11-04 Thread Sverre
My cron tab looking like this #crontab */2 * * * * root *sys/test_cron @hourly root *applications/mm/cron/expire_sessions.py but this doesn' work. My test cron function is from time import ctime def test_cron(): db.dbg.insert(dbgmsg=ctime()) db.commit() return ready

[web2py] Database query using regular expressions

2010-11-04 Thread Johann Spies
In order to solve inconsistent typing by either people who capture data or people using search functions I intend to use something like this in SQL (Postgresql): select titel from joernaal where regexp_replace(lower(titel), '[ -,.:]', '', 'g') = regexp_replace(lower('SAMj -South african

[web2py] Re: new admin layout

2010-11-04 Thread Martin.Mulone
Thanks branko look very good. Some little things -less rounded in title headers? -the orange in button edit still killing my eyes? -submit button has no margins -Why not by default in edit = all collapsed ? -The font color in top menu orange with green background is not getting well, you tried

Re: [web2py] Re: new admin layout

2010-11-04 Thread Branko Vukelic
On Thu, Nov 4, 2010 at 11:33 AM, Martin.Mulone mulone.mar...@gmail.com wrote: Thanks branko look very good. Some little things -less rounded in title headers? Maybe? -the orange in button edit still killing my eyes? Maybe? -submit button has no margins Submit button is an inline

[web2py] Re: Database query using regular expressions

2010-11-04 Thread mdipierro
This may work query=regexp_replace(lower(titel), '[ -,.:]', '', 'g') = regexp_replace(lower('SAMj -South african Medical Journal'), '[,.:]', '', 'g') db(query).select(db.joernaal.titel) On Nov 4, 5:14 am, Johann Spies johann.sp...@gmail.com wrote: In order to solve inconsistent typing by

[web2py] Book Edit Suggestion

2010-11-04 Thread villas
http://www.web2py.com/book/default/chapter/07#CRUD I noticed this example in the book which does not seem correct: def manage(): table=db[request.args(0)] form = crud.update(table,request.args(1)) table.id.represent = lambda id: \

[web2py] Wizard Feature Request

2010-11-04 Thread Seeker
Hi, Really great work on the wizard! It makes life a lot easier. I don't know how useful most people will find it, but I would really appreciate being to specify/list tables in the wizard in any order (regardless of their dependencies) and have the wizard place them in the correct order in the

[web2py] Re: Wizard Feature Request

2010-11-04 Thread mdipierro
good idea. Should be easy to do. I will do it asap. On Nov 4, 7:45 am, Seeker tmurn...@gmail.com wrote: Hi, Really great work on the wizard!  It makes life a lot easier. I don't know how useful most people will find it, but I would really appreciate being to specify/list tables in the

[web2py] Re: Wizard Feature Request

2010-11-04 Thread Seeker
Great, thanks! On Nov 4, 3:01 pm, mdipierro mdipie...@cs.depaul.edu wrote: good idea. Should be easy to do. I will do it asap. On Nov 4, 7:45 am, Seeker tmurn...@gmail.com wrote: Hi, Really great work on the wizard!  It makes life a lot easier. I don't know how useful most people

[web2py] Re: new admin layout

2010-11-04 Thread mdipierro
This was my mistake since I had to appply Branko's patch manuallay. Now fixed: http://www.web2py.com/demo_admin/default/site On Nov 4, 12:07 am, Jonathan Lundell jlund...@pobox.com wrote: On Nov 3, 2010, at 8:21 PM, mdipierro wrote: Here is the latest work by Branko (with minor edits by

[web2py] \sample markmin app

2010-11-04 Thread mdipierro
http://www.web2py.com/markmin

[web2py] two FORM questions

2010-11-04 Thread Andrew Thompson
I built a FORM() object to handle data collection for multiple records in one swoop, but it doesn't seem to activate the widgets. Do I need something more than the below? INPUT(_type='text',_name='date', requires=IS_DATE()) The validator is applied, but the widget is not. I also was trying

Re: [web2py] Re: Database query using regular expressions

2010-11-04 Thread Johann Spies
Thanks. I will try it. Regards Johann --  May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord!  His divine power has given us everything we need for life and godliness through the full knowledge of the one who called us by his own glory and

[web2py] Re: new admin layout

2010-11-04 Thread mdipierro
Just a tought... How about we make ALL sounded corners 3px and we use the button colors of stack overflow (edit in white/orange, site buttons in black/white, other buttons in white/gray)? We can also make the top bar gray as they do which is un-intrusive. We do not need a logo. People know where

[web2py] Re: two FORM questions

2010-11-04 Thread mdipierro
If you use INPUT than you want an input.../input. No widgets. I suggest you use SQLFORM.factory(Field(.)) instead. On Nov 4, 8:20 am, Andrew Thompson andre...@aktzero.com wrote: I built a FORM() object to handle data collection for multiple records in one swoop, but it doesn't seem to

Re: [web2py] Re: new admin layout

2010-11-04 Thread Jonathan Lundell
On Nov 4, 2010, at 6:07 AM, mdipierro wrote: This was my mistake since I had to appply Branko's patch manuallay. Now fixed: http://www.web2py.com/demo_admin/default/site The scale of the buttons is good now. That's a lot better than it was. But expand the page in Mac Safari (cmd+) and

[web2py] Error in trunk with admin layout?

2010-11-04 Thread Seeker
Hi, In trunk: Not sure if i have done something wrong, but admin seems to be without a layout ... Anyone else experiencing this? Thanks.

Re: [web2py] Re: new admin layout

2010-11-04 Thread Martín Mulone
+1 I just remove the header background with firebug, look very good without the green. For the submit button you can also use how is in the new welcome input[type=submit], input[type=button], button { margin: 0px; /*width: 85px;*/ height: 22px; background: #eaeaea; color: #555; border: 1px solid

[web2py] linked tables and dropdown display

2010-11-04 Thread andrej burja
hi i have db.define.table('basic' Field('name1') ...) db.define.table('advanced' Field('name2',db.basic) ...) db.advanced.name.requires=IS_IN_DB(db,'basic.id','%(name1)s') db.define.table('data'

Re: [web2py] cron ignores PYTHONPATH

2010-11-04 Thread Jonathan Lundell
On Nov 3, 2010, at 10:34 PM, Jonathan Lundell wrote: On Nov 3, 2010, at 8:45 PM, Leo wrote: I am running web2py 1.88.2. I have some modules I import that are not under the application's directory. These are moduled developed for other projects. Accessing the modules works fine within

Re: [web2py] Error in trunk with admin layout?

2010-11-04 Thread rochacbruno
+1 Enviado via iPhone Em 04/11/2010, às 11:33, Seeker tmurn...@gmail.com escreveu: Hi, In trunk: Not sure if i have done something wrong, but admin seems to be without a layout ... Anyone else experiencing this? Thanks.

[web2py] Re: new admin layout

2010-11-04 Thread Anthony
Looks good. A few comments: - At least on my screen, the orange text on white background is a bit too light for comfortable reading (the same text actually looks a bit too dark in the header, though sounds like we might change that anyway). - Need to work on the behavior and labeling of the

[web2py] Re: linked tables and dropdown display

2010-11-04 Thread mdipierro
do this: db.define.table('basic' Field('name1') ...,format='%(name1)s') db.define.table('advanced' Field('name2',db.basic) ...,format='%(name2)s') # db.advanced.name.requires=IS_IN_DB(db,'basic.id','%(name1)s')

[web2py] Re: Error in trunk with admin layout?

2010-11-04 Thread mdipierro
Check if fixed. On Nov 4, 9:17 am, rochacbruno rochacbr...@gmail.com wrote: +1 Enviado via iPhone Em 04/11/2010, às 11:33, Seeker tmurn...@gmail.com escreveu: Hi, In trunk: Not sure if i have done something wrong, but admin seems to be without a layout ... Anyone else

Re: [web2py] CRON doesn't work

2010-11-04 Thread Vinicius Assef
Sverre, I think you must use your own application crontab, located at applications/your_app/cron I suggest you create a python script without any functions inside it, to isolate your cron job, and put it in applications/your_app/private/. I do this here and it works nice. Following my advice,

[web2py] no-WWW in routes

2010-11-04 Thread Francisco Costa
Is there a way that we can route a website so that http://www.domain.com redirect to http://domain.com If you can't do this with routes how you can do it?

[web2py] Re: no-WWW in routes

2010-11-04 Thread mdipierro
Not with routes. Apache mod_rewrite On Nov 4, 10:49 am, Francisco Costa m...@franciscocosta.com wrote: Is there a way that we can route a website so thathttp://www.domain.com redirect tohttp://domain.com If you can't do this with routes how you can do it?

[web2py] Re: CRON doesn't work

2010-11-04 Thread mdipierro
You can have a function but the script must call it: from time import ctime def test_cron(): db.dbg.insert(dbgmsg=ctime()) db.commit() return ready test_cron() # On Nov 4, 10:24 am, Vinicius Assef vinicius...@gmail.com wrote: Sverre, I think you must use your own application

[web2py] list:reference issue

2010-11-04 Thread Richard Vézina
Hello, I get this error... I have no clue why I get it. I think it not coming from my app : Traceback (most recent call last): File /home/www-data/web2py/gluon/restricted.py, line 188, in restricted exec ccode in environment File

Re: [web2py] Re: new admin layout

2010-11-04 Thread Branko Vukelic
There are always new cool ideas, and I'm sure all of us have more than just a few of those. And I would LOVE to try all of them and see what works. But then again, we could do it until we all die and never finish. Why? Because there is no such thing as finished in graphic design. Someone says

Re: [web2py] Re: new admin layout

2010-11-04 Thread Richard Vézina
Since we are in this process. I would propose something, just a basic rule in design. I am not defending a point here. Having side by side edit and delete buttons is a bad design. 2 solutions : 1) Put a validation question on delete clic (ex.: would you really delete the file XX). 2) No

[web2py] Re: \sample markmin app

2010-11-04 Thread villas
That looks like a great combination with the editor! Is Markitup going to be included as standard? -D

[web2py] Re: no-WWW in routes

2010-11-04 Thread Francisco Costa
ok I've added the following to my virtual-host RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] On 4 Nov, 16:22, mdipierro mdipie...@cs.depaul.edu wrote: Not with routes. Apache mod_rewrite On Nov 4, 10:49 am, Francisco Costa

[web2py] Re: list:reference issue

2010-11-04 Thread Richard Vézina
Ok I know what the problem has cause : It seems that the new version is splitting id into single number : 35 = |3|5| 94 = |9|4| Instead of : 94 = |94| Richard On Thu, Nov 4, 2010 at 12:33 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello, I get this error... I have no clue why

[web2py] How to make a dropbox in a create.form with IS_IN_DB and an join of multiple tables

2010-11-04 Thread demetrio
Hi everyone! I'm doing an app with fullcalendar (http://arshaw.com/fullcalendar/) and now i'm with all the events and calendar cruds. Its time to add some logic to the crud.create() of the events, an only let the user to add events in his/her calendars, not in ALL the calendars. I have this:

[web2py] Re: new admin layout

2010-11-04 Thread mdipierro
There is a validation check but on a separate page. We can turn it into a popup. On Nov 4, 12:28 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: Since we are in this process. I would propose something, just a basic rule in design. I am not defending a point here. Having side by side

[web2py] Re: \sample markmin app

2010-11-04 Thread mdipierro
it has been included for some time. You can use it via the MARKMIN helper. On Nov 4, 12:34 pm, villas villa...@gmail.com wrote: That looks like a great combination with the editor! Is Markitup going to be included as standard? -D

Re: [web2py] Re: new admin layout

2010-11-04 Thread Branko Vukelic
On Thu, Nov 4, 2010 at 7:22 PM, mdipierro mdipie...@cs.depaul.edu wrote: Point taken. If you feel you have the time to work a better html, I fully support that. Great. :) -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check

[web2py] Logical Delete instead of true delete of a record using crud.update

2010-11-04 Thread ggivler
I have a crud.update form that is deletable, I use the ondelete callback function to mark the records as nonvalid, is there a way to keep the record from being deleted after this?

[web2py] Re: \sample markmin app

2010-11-04 Thread Luther Goh Lu Feng
Very nice. How can one embed videos from youtube, vimeo, using markmin? On Nov 5, 2:25 am, mdipierro mdipie...@cs.depaul.edu wrote: it has been included for some time. You can use it via the MARKMIN helper. On Nov 4, 12:34 pm, villas villa...@gmail.com wrote: That looks like a great

[web2py] Re: new admin layout

2010-11-04 Thread mdipierro
Point taken. If you feel you have the time to work a better html, I fully support that. On Nov 4, 11:36 am, Branko Vukelic bg.bra...@gmail.com wrote: There are always new cool ideas, and I'm sure all of us have more than just a few of those. And I would LOVE to try all of them and see what

Re: [web2py] Re: Custom Authentication Template

2010-11-04 Thread Andrew Evans
hey ty very much :-) On Wed, Nov 3, 2010 at 6:23 PM, mdipierro mdipie...@cs.depaul.edu wrote: errata views/default/user.html On Nov 3, 6:51 pm, Andrew Evans randra...@gmail.com wrote: How can I implement my own html template for the authentication/login to use throughout my site. I

[web2py] Re: Logical Delete instead of true delete of a record using crud.update

2010-11-04 Thread mdipierro
hm. that breaks the workflow. You should expose the nonvalid field (field.writable=True) and do a crud.update(,deletable=False) On Nov 4, 1:31 pm, ggivler ggiv...@gmail.com wrote: I have a crud.update form that is deletable, I use the ondelete callback function to mark the records as

[web2py] Re: new admin layout

2010-11-04 Thread Anthony
Branko, Again, thanks for all your efforts improving the Admin interface. Your points are well taken, and I don't think anyone expects that all of this feedback will be incorporated immediately (or even ever). We've already made some very nice improvements over the old Admin, so anything further

[web2py] Re: \sample markmin app

2010-11-04 Thread mdipierro
you can use plugin_wiki instead. Of you can use markmin and define your own syntax. For example you can do extra = {'youtube': lambda code: object width=640 height=385param name=movie value=http://www.youtube.com/v/%s? fs=1amp;hl=en_US/paramparam name=allowFullScreen value=true/paramparam

Re: [web2py] How to make a dropbox in a create.form with IS_IN_DB and an join of multiple tables

2010-11-04 Thread Richard Vézina
Hello! I am very interresting in your dev. I would like to help if possible. Richard On Thu, Nov 4, 2010 at 2:16 PM, demetrio dgzabal...@gmail.com wrote: Hi everyone! I'm doing an app with fullcalendar (http://arshaw.com/fullcalendar/) and now i'm with all the events and calendar cruds.

[web2py] Re: \sample markmin app

2010-11-04 Thread David Marko
I cant download the app using the provided link: http://www.web2py.com/markmin/static/web2py.app.markmin.w2p David On 4 lis, 20:02, mdipierro mdipie...@cs.depaul.edu wrote: you can use plugin_wiki instead. Of you can use markmin and define your own syntax. For example you can do extra =

[web2py] Re: \sample markmin app

2010-11-04 Thread Luther Goh Lu Feng
This is an an excellent tip! I did not read this in the online book. If it is not already in the book, please include it! On Nov 5, 3:02 am, mdipierro mdipie...@cs.depaul.edu wrote: you can use plugin_wiki instead. Of you can use markmin and define your own syntax. For example you can do

[web2py] Re: \sample markmin app

2010-11-04 Thread DenesL
Nice. One problem with one of the menu icons though, pressing on the numeric list produces a '+' and it should be '+ ' otherwise you have to add the space manually for the list to work. The bulleted list does it right: '- ' On Nov 4, 8:09 am, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py] Straw poll on the learning curve of markmin for the layman

2010-11-04 Thread Luther Goh Lu Feng
Has anyone had experience implementing markin as part of text area input? Do end users find markmin difficult? Personally, I find it very user friendly, especially with http://www.web2py.com/markmin But then again, I am a biased developer. Any feedback on this?

Re: [web2py] Re: new admin layout

2010-11-04 Thread Branko Vukelic
On Thu, Nov 4, 2010 at 8:00 PM, Anthony abasta...@gmail.com wrote: Branko, Again, thanks for all your efforts improving the Admin interface. Your points are well taken, and I don't think anyone expects that all of this feedback will be incorporated immediately (or even ever). We've already

Re: [web2py] Re: \sample markmin app

2010-11-04 Thread rochacbruno
Very Nice! I am a markmin fan Would be good to render it live with ajax. Enviado via iPhone Em 04/11/2010, às 17:35, mdipierro mdipie...@cs.depaul.edu escreveu: oops. please try againa. On Nov 4, 2:10 pm, David Marko dma...@tiscali.cz wrote: I cant download the app using the provided

[web2py] Re: new admin layout

2010-11-04 Thread mdipierro
The conference talk is not on web2py but I will run examples using web2py. Because of that I would like to release 1.89.1 next week. That does not prevent us from making any more changes later. Yet, I would not like to release something that is very different from the previous version and too far

[web2py] Re: \sample markmin app

2010-11-04 Thread mdipierro
oops. please try againa. On Nov 4, 2:10 pm, David Marko dma...@tiscali.cz wrote: I cant download  the app using the provided link:http://www.web2py.com/markmin/static/web2py.app.markmin.w2p David On 4 lis, 20:02, mdipierro mdipie...@cs.depaul.edu wrote: you can use plugin_wiki instead.

Re: [web2py] Re: new web2py appliance: File Manager

2010-11-04 Thread Massimiliano
Done. Has been a good exercise. How can I publish it? -- Massimiliano On Thu, Nov 4, 2010 at 2:22 AM, mdipierro mdipie...@cs.depaul.edu wrote: It should be easy to turn it into a plugin. Any takers? On Nov 3, 6:20 pm, yamandu yamandu.co...@gmail.com wrote: Is there a way to integrate

[web2py] CRUD delete with user confirmation

2010-11-04 Thread baloan
Hello, crud.delete(table, id) in 1.87.3 deletes the record right away. I'd like to implement a view of the record (as produced by crud.read(table, id) with a delete button in the bottom. How would I implement this? Regards, Andreas balo...@gmail.com

[web2py] Re: list:reference issue

2010-11-04 Thread mdipierro
Can you please post the model, the controller and the steps to reproduce the problem? Massimo On Nov 4, 3:29 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: More input on the problem. It happen when the date validator is activated. The refresh form not expose the normal list field. I

[web2py] Re: new web2py appliance: File Manager

2010-11-04 Thread mdipierro
email email email. :-) On Nov 4, 3:20 pm, Massimiliano mbelle...@gmail.com wrote: Done. Has been a good exercise. How can I publish it? -- Massimiliano On Thu, Nov 4, 2010 at 2:22 AM, mdipierro mdipie...@cs.depaul.edu wrote: It should be easy to turn it into a plugin. Any takers? On

[web2py] Re: CRUD delete with user confirmation

2010-11-04 Thread mdipierro
for field in table: field.writable=False form = crud.update(table, id) On Nov 4, 3:28 pm, baloan balo...@googlemail.com wrote: Hello, crud.delete(table, id) in 1.87.3 deletes the record right away. I'd like to implement a view of the record (as produced by crud.read(table, id) with a delete

[web2py] Re: Hyperlink urls in comments

2010-11-04 Thread howesc
Annet, I suspect that this problem has more to do with HTML email, or how your email client guesses what are links in text based email. i believe that by default the request_reset_password sends a text-only email with no HTML markup. though most clients will recognize http:// as a URL and

[web2py] Re: CRUD select with autosort headers

2010-11-04 Thread baloan
This is my feeble attempt at the problem - but it does the job: def index(): add_submenu() headers = {'email.id': A('Id', _href=URL(vars=dict(orderby='id'))), 'email.email': A('Email address', _href=URL(vars=dict(orderby='email'))), 'email.active':A('Active',

[web2py] Re: How to make a dropbox in a create.form with IS_IN_DB and an join of multiple tables

2010-11-04 Thread howesc
your problem is where you put the query in the IS_IN_DB. try modifying to put the query in the first spot. something like: requires=IS_IN_DB(db((db.file_asset.type == db.file_asset_type.id) (db.file_asset_type.name=='Album Art')),

[web2py] Re: CRUD delete with user confirmation

2010-11-04 Thread baloan
I am using crud.update() as well. The next time I use crud.update() I have to restore the original settings for all field.writeable in table. Correct? Regards, Andreas On Nov 4, 9:34 pm, mdipierro mdipie...@cs.depaul.edu wrote: for field in table: field.writable=False form = crud.update(table,

[web2py] Re: CRUD select with autosort headers

2010-11-04 Thread baloan
When I say ugly I mean: 1. too much duplication, 2. too much boilerplate code. Just imagine what happens if I apply my solution to more than a few tables. Regards, Andreas On Nov 4, 10:00 pm, baloan balo...@googlemail.com wrote: This is my feeble attempt at the problem - but it does the job:

[web2py] TAG colon problem

2010-11-04 Thread Francisco Costa
I'm trying to do a sitemap for my site. The thing is that when I set sitemap=TAG.urlset(_xmlns='http://www.sitemaps.org/schemas/sitemap/ 0.9', _xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;) the xmlns:xsi gives error because of the colon (:) Is there any way that i can change this?

[web2py] Re: CRUD select with autosort headers

2010-11-04 Thread baloan
An updated attempt: def index(): # create header column links headers = dict() for col in db.email_archive.fields: headers['email_archive.' + col] = A(col, _href=URL(vars=dict(orderby=col))) # manage sort order if 'email_archive_orderby' not in session:

[web2py] Re: CRUD select with autosort headers

2010-11-04 Thread baloan
Final attempt. Much better now. web2py is cool! def history(): headers, key = auto_orderby(db.email_archive, default_order=('desc', 'id')) emails = crud.select(db.email_archive, headers=headers, orderby=key, limitby=(0, 50)) return dict(emails=emails) def auto_orderby(dal_table,

[web2py] Re: new admin layout

2010-11-04 Thread Christopher Steel
Nice work, looks great! I really like the flow that is starting to happen when resizing the browser window. Makes me want to try it from my iphone... Chris On Nov 1, 10:12 pm, mdipierro mdipie...@cs.depaul.edu wrote: I can make this stable tomorrow if no objections. Massimo On Nov 1, 9:10 

[web2py] Re: \sample markmin app

2010-11-04 Thread mikech
++ DZoned it! On Nov 4, 6:09 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/markmin

[web2py] Re: Straw poll on the learning curve of markmin for the layman

2010-11-04 Thread Christopher Steel
We love Markmin. It is tiny, easy to use and logical. It is similar to Markdown which is pretty nice, but Markmin covers what people actually use in a way that makes markup look good in itself. As an added bonus it is totally readable as a text file so everyone, including one of our board members

[web2py] Re: web2py as a cross-platform mobile application platform

2010-11-04 Thread Christopher Steel
Sweet! Thanks Martin. I am going to check it out! Chris. On Nov 3, 6:49 pm, Martín Mulone mulone.mar...@gmail.com wrote: Yes, the new welcome is based in htmlboilerplate and has some things for mobile but you have to test and make proper changes to static/css/handheld.css and not all mobiles

Re: [web2py] Re: Straw poll on the learning curve of markmin for the layman

2010-11-04 Thread rochacbruno
I am a markmin fan, I wrote An. Entire book in markmin. Very rapid Enviado via iPhone Em 04/11/2010, às 20:15, Christopher Steel chris.st...@gmail.com escreveu: We love Markmin. It is tiny, easy to use and logical. It is similar to Markdown which is pretty nice, but Markmin covers what

[web2py] SQLFORM submission issue

2010-11-04 Thread Vidul Petrov
Hi all, I am trying to use a form which does not redirect after its acceptance. However after the submit the new form does not pass through: if form.accepts(request.vars, session): ... elsif form.errors: ... unless the page is reloaded. Is this the expected behavior?

[web2py] Re: TAG colon problem

2010-11-04 Thread Francisco Costa
is this a bug or a python issue? On 4 Nov, 21:12, Francisco Costa m...@franciscocosta.com wrote: I'm trying to do a sitemap for my site. The thing is that when I set sitemap=TAG.urlset(_xmlns='http://www.sitemaps.org/schemas/sitemap/ 0.9',

[web2py] Re: GAE GQL count patch

2010-11-04 Thread Richard
my only concern would be timeouts for large tables On Nov 4, 11:39 am, howesc how...@umich.edu wrote: Massimo and others, Google claims that count() does not have an enforced limit, though they have mis-documented the feature.  

[web2py] Re: SQLFORM submission issue

2010-11-04 Thread Vidul Petrov
It was my error, which have nothing to do with Web2py. There is no such issue. On Nov 5, 12:36 am, Vidul Petrov vidul.r...@gmail.com wrote: Hi all, I am trying to use a form which does not redirect after its acceptance. However after the submit the new form does not pass through:  if

[web2py] Re: new welcome app in trunk but minor problem...

2010-11-04 Thread Richard
Love the new welcome app design. Instead of developing flash further how about just using jgrowl instead. It requires downloading 3 more files and the advantages are minimal. I think the advantages are worthwhile and the extra files do not matter if they are stored in sub-folders to avoid

[web2py] Problem accessing admin interface after upgrade

2010-11-04 Thread Argher
Hello, I recently upgraded from 1.76.5 to 1.88.2 via the one-click upgrade button. After a restart of web2py.py, followed by a server restart, the admin interface mentioned that it was disabled due to no password. I checked the parameters_8000 etc, which corroborated that, and said

[web2py] disable xml, json renders

2010-11-04 Thread john
Maybe my google-fu is a bit rusty, but for the life of me, I couldn't find anything about disabling unused renders in web2py. For example: http://127.0.0.1:8000/app/default/index http://127.0.0.1:8000/app/default/index.xml http://127.0.0.1:8000/app/default/index.json

[web2py] Dynamic Onclick Button Based on Python Return Values

2010-11-04 Thread karl simon
Hello, I'm a new to web2py and web programming, so bear with me if this is a basic question. I'm trying to figure out how to dynamically update a button based on a return value from a python function. Here's a little more background on my project. I'm trying to create an instrument panel that

[web2py] Re: TAG colon problem

2010-11-04 Thread DenesL
sitemap=TAG.urlset(**{'_xmlns':'http://www.sitemaps.org/schemas/ sitemap/0.9', '_xmlns:xsi':http://www.w3.org/2001/XMLSchema- instance}) On Nov 4, 7:08 pm, Francisco Costa m...@franciscocosta.com wrote: is this a bug or a python issue? On 4 Nov, 21:12, Francisco Costa m...@franciscocosta.com

Re: [web2py] disable xml, json renders

2010-11-04 Thread Bruno Rocha
May be not the best approach, but in any model or controller you can check for extension with *request.extension* * * ***so, * * * if request.extension in ['rss','json','xml','rss']: raise HTTP(400, Not Found) 2010/11/4 john john...@gmail.com Maybe my google-fu is a bit rusty, but for the

Re: [web2py] Re: new admin layout

2010-11-04 Thread Thadeus Burgess
The corners are way too rounded. Looks good! -- Thadeus On Thu, Nov 4, 2010 at 4:57 PM, Christopher Steel chris.st...@gmail.comwrote: Nice work, looks great! I really like the flow that is starting to happen when resizing the browser window. Makes me want to try it from my iphone...

[web2py] Re: \sample markmin app

2010-11-04 Thread mart
I really like this. And I really like to use your cook book app, as is, because I deal with too many groups of people and interests @work. The cook book has that compartiment feature built-in :) (although if I did have any kind of time to myself, I would look into adding sub-categories) I mostly

Re: [web2py] Book Edit Suggestion

2010-11-04 Thread Bruno Rocha
It is ok to do search, rows = crud.search(table), crud.select(table) Edited! 2010/11/4 villas villa...@gmail.com http://www.web2py.com/book/default/chapter/07#CRUD I noticed this example in the book which does not seem correct: def manage(): table=db[request.args(0)] form =

[web2py] Re: CRUD select with autosort headers

2010-11-04 Thread mdipierro
Good work. You also have the option to do {{=plugin_wiki.widget('jqgrid',table)}} which is sortable, searchable, resizable, can reorder columns, ajax pagination, etc. On Nov 4, 4:38 pm, baloan balo...@googlemail.com wrote: Final attempt. Much better now. web2py is cool! def history():    

[web2py] Re: Problem accessing admin interface after upgrade

2010-11-04 Thread mdipierro
Somehow your parameters_*.py files are corrupted. I hope all your files were updated and not some of them. I suggest: 0) close web2py 1) Delete parameters_*.py 2) unzip new web2py again over old one 3) start web2py with -a 'password' option and let it create the parameters_*.py files. On Nov

[web2py] Re: disable xml, json renders

2010-11-04 Thread mdipierro
Or delete the view/generic.* files. On Nov 4, 9:30 pm, Bruno Rocha rochacbr...@gmail.com wrote: May be not the best approach, but in any model or controller you can check for extension with *request.extension* * * ***so, * * * if request.extension in ['rss','json','xml','rss']: raise

[web2py] Re: Book Edit Suggestion

2010-11-04 Thread mdipierro
Just: search, rows = crud.search(table) search returns a tuple. On Nov 4, 10:29 pm, Bruno Rocha rochacbr...@gmail.com wrote: It is ok to do search, rows = crud.search(table), crud.select(table) Edited! 2010/11/4 villas villa...@gmail.com

[web2py] How do you create custom form feilds?

2010-11-04 Thread Jason Brower
I understand how to actually do it in the database. But what if I wanted to know if there is a proper way to do it when I let specific roles in my site create fields of their own. For example: (I am building a conference software.) John is using my site to create an event to attend. He has the

Re: [web2py] Re: Book Edit Suggestion

2010-11-04 Thread rochacbruno
Sorry I didnt test this way. I also didnt know that search returns a select. Enviado via iPhone Em 05/11/2010, às 01:58, mdipierro mdipie...@cs.depaul.edu escreveu: Just: search, rows = crud.search(table) search returns a tuple. On Nov 4, 10:29 pm, Bruno Rocha rochacbr...@gmail.com

[web2py] Where's the applications directory on OSX filesystem?

2010-11-04 Thread Tom Campbell
I'm changing to OSX from Windows and can't browse to the applications directory. If I search for the view file customer.html from the command line I see it easily: $ find . -name customer.html ./osx/1.88.2/web2py/web2py.app/Contents/Resources/applications/ scheduler/views/customer.html However

[web2py] Re: Where's the applications directory on OSX filesystem?

2010-11-04 Thread Tom Campbell
Of course I figured this out moments after I posted, even though I'd pondered it for some time before. Sorry for wasting your intellectual bandwidth.

Re: [web2py] Where's the applications directory on OSX filesystem?

2010-11-04 Thread rochacbruno
.app are packages, right click or command click on that and select show content or something like this Enviado via iPhone Em 05/11/2010, às 02:43, Tom Campbell tomcampb...@gmail.com escreveu: I'm changing to OSX from Windows and can't browse to the applications directory. If I search for

Re: [web2py] Where's the applications directory on OSX filesystem?

2010-11-04 Thread Jonathan Lundell
On Nov 4, 2010, at 9:49 PM, rochacbruno wrote: .app are packages, right click or command click on that and select show content or something like this right or control click, Show Package Contents. On the command line, in (say) Terminal, web2py.app looks like just another folder; the