[web2py:12050] Re: tier vs. module

2008-11-17 Thread mdipierro
You do not need to worry because the all idea of t2 is to have separate modules for different functionalities that you include as needed. t2.py is the core and it will stay small. Massimo On Nov 17, 11:08 pm, "mr.freeze" <[EMAIL PROTECTED]> wrote: > Are there performance issues to consider when

[web2py:12049] Re: web2py.net?

2008-11-17 Thread ed
Vihang, You are a great guy! Very unselfish. Cheers! ed On Nov 16, 5:02 pm, vihang <[EMAIL PROTECTED]> wrote: > Thank you everyone. I am sure the domain will be put to good use by > the community, which was always the intention. Looking forward to > collaborating further... > > On Nov 16, 12:44 a

[web2py:12048] db.table question

2008-11-17 Thread kev
Hello, I am trying to develop a function that takes db.table and does different things to it. Now i was wondering how do i access different attributes of the table? Like for example, access different fields inside a table can be done using db.table.fields but what about all the other attributes?

[web2py:12047] tier vs. module

2008-11-17 Thread mr.freeze
Are there performance issues to consider when instantiating an entire tier of features (T2) vs. a modular approach? A lot of my apps seem to only need the web2py core and a couple of T2 features like authentication and user/group management. I would like to be able to selectively enable modules

[web2py:12046] Re: Weird thing with SQLFORM

2008-11-17 Thread mdipierro
I rearranged the order of you code and removed those cols referencing tables that are not defined. The following code works: import datetime now=datetime.datetime.today() db=SQLDB('sqlite://storage.db') db.define_table('docs_categories', SQLField('name','string',length=150),

[web2py:12045] Re: Weird thing with SQLFORM

2008-11-17 Thread mdipierro
I will give this a try later tonight. Massimo On Nov 17, 5:59 pm, pigmej <[EMAIL PROTECTED]> wrote: > Yarko it's after :) > > I copied parts from it and paste there. So thats not that problem ;) > > On Nov 18, 12:55 am, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > > > OH! > > You need to reali

[web2py:12044] Re: Weird thing with SQLFORM

2008-11-17 Thread pigmej
Yarko it's after :) I copied parts from it and paste there. So thats not that problem ;) On Nov 18, 12:55 am, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > OH! > You need to realize one thing:   web2py EXECUTES your models - > > db.docs_categories.name.requires > > must appear AFTER the db.

[web2py:12043] Re: Weird thing with SQLFORM

2008-11-17 Thread Yarko Tymciurak
OH! You need to realize one thing: web2py EXECUTES your models - db.docs_categories.name.requires must appear AFTER the db.define_tablewhich defines docs_categories Try to arrange your code to account for this - then see what you get. On Mon, Nov 17, 2008 at 5:39 PM, pigmej <[EMAI

[web2py:12042] Re: we is default needed

2008-11-17 Thread Yarko Tymciurak
by convention,web2py maps requests this way: application / controller / function { / args / vars } If application is "init" or "welcome", then you're left w/ controller / function so if your app is init, then http://my.domain.info/file.html asks web2py for the controller "file", but do

[web2py:12041] Re: Weird thing with SQLFORM

2008-11-17 Thread pigmej
so Any single error. Just nothing select in Category dropdown if I generate SQLFORM(db.docs_pages_ver,values,showid = False). All other dropdown's are selected ( author and parrent ) but not this one Part of model (it's enough?): http://wklej.to/bpL On Nov 18, 12:28 am, mdipierro <[EMA

[web2py:12040] Re: How to extend a model

2008-11-17 Thread Baron
to avoid modifying t2.py I redefined the instance method externally like this: def login(self,next='index',onlogin=None): request,response,session,cache,T,db=self._globals() form=SQLFORM(db.t2_person,fields=['name','password'],\ hidden=dict(_destination=request.vars._des

[web2py:12039] Re: we is default needed

2008-11-17 Thread Wes James
when in the gui and i want to create a new view, it seems i have to type in default/new-view.html for the controller to see it and on the web web it must be accessed with app/default/view - why not app/view? On Mon, Nov 17, 2008 at 4:29 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > sorry. I do not

[web2py:12038] Re: itemize

2008-11-17 Thread mdipierro
I have answered tihis just now in another thread On Nov 17, 4:49 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I put this in a view: > > {{extend '../../plugin_t2/views/layout.html'}} > {{=schols}} > > And it displays like I said before (plus i added [next page] here) > > [next page] > [#1] field1

[web2py:12037] Re: itemize output only shows first field

2008-11-17 Thread mdipierro
because itemize is not the same as a normal table. It expects you to define how to show a row: db.mytable.represent=lambda row: P(SPAN(row.name),SPAN (row.otherfield)) if it does not better, its takes the field only. Massimo On Nov 17, 4:45 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I put th

[web2py:12036] Re: we is default needed

2008-11-17 Thread mdipierro
sorry. I do not understand the question. On Nov 17, 4:43 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I was wondering why i was following what I learned from the puppy > demo... create default/file.html when file.html does not work - it > gives a controller error. why is it like that - that we n

[web2py:12035] Re: Weird thing with SQLFORM

2008-11-17 Thread mdipierro
what error do you get? can I see the model? On Nov 17, 4:00 pm, pigmej <[EMAIL PROTECTED]> wrote: > Did not works. > > On Nov 17, 10:26 pm, mdipierro <[EMAIL PROTECTED]> wrote: > > > Do not know whitout lookig at models but try replace > > > db.docs_pages_ver.category.requires=IS_NULL_OR(IS_IN_DB

[web2py:12034] Re: Strange SQLDB Problem.

2008-11-17 Thread Yarko Tymciurak
Looking at http://www.postgresql.org/docs/8.3/interactive/sql-keywords-appendix.html it appears to be reserved in SQL-2003 standard; On Mon, Nov 17, 2008 at 4:14 PM, Phyo Arkar <[EMAIL PROTECTED]>wrote: > Ok , So have to avoid it then . Np :) > > > On Mon, Nov 17, 2008 at 10:12 PM, billf <[EMAIL

[web2py:12033] Re: where to put view logic

2008-11-17 Thread Yarko Tymciurak
And the purpose of separation is to prevent "unnatural design coupling." Some things may be "naturally coupled" across layers, such as a login. But what about student name? Student name is part of the data structure, used in logic, and presented in a friendly way...What if, at the data level,

[web2py:12032] Re: IS_IN_SET() usage

2008-11-17 Thread Marco Prosperi
I can't see any dropdown list in my application with any of these suggestions (web2py 1.50 but also tried 1.47). Moreover I have a second problem when inserting new records in my db. Here below you can find my db.py (model, with the original italian names for tables and fields, sqlite database)

[web2py:12031] Re: display bit of text like pic in puppy demo

2008-11-17 Thread [EMAIL PROTECTED]
i'm going to try this: http://jqueryfordesigners.com/slide-out-and-drawer-effect/ On Nov 17, 3:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Actually, maybe jquery can do a slide down and fill it with text > thingy.  Can jquery do that?  I click on the item and some space opens > up be

[web2py:12030] itemize

2008-11-17 Thread Wes James
I put this in a view: {{extend '../../plugin_t2/views/layout.html'}} {{=schols}} And it displays like I said before (plus i added [next page] here) [next page] [#1] field1 ... [#10] field1 When I click on [ next page ] it shows #1 - #10 again. The url changes to /schols?_page=1 - it shou

[web2py:12029] itemize output only shows first field

2008-11-17 Thread Wes James
I put this in the controller: def scholarships(): return dict(schols=t2.itemize(db.schols,query=db.schols.id>0,limitby=(0,10))) and then in the view: {{=schols} but it only shows: [#1] field1 [#2] field1 . . . [#10] field1 How do I show the other fields? I looked for the alterego doc

[web2py:12028] we is default needed

2008-11-17 Thread Wes James
I was wondering why i was following what I learned from the puppy demo... create default/file.html when file.html does not work - it gives a controller error. why is it like that - that we need to do default/ stuff? thx, -wj --~--~-~--~~~---~--~~ You receive

[web2py:12027] Re: display bit of text like pic in puppy demo

2008-11-17 Thread [EMAIL PROTECTED]
Actually, maybe jquery can do a slide down and fill it with text thingy. Can jquery do that? I click on the item and some space opens up below the item with some description text? -wj On Nov 17, 3:15 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > Is there a way to have a popout screen for a db r

[web2py:12026] display bit of text like pic in puppy demo

2008-11-17 Thread Wes James
Is there a way to have a popout screen for a db record like the puppy demo does for a pic. i.e., click on link to record and get a popout of that record in a box like the puppy pic. thx, -wj --~--~-~--~~~---~--~~ You received this message because you are subscri

[web2py:12025] Re: Strange SQLDB Problem.

2008-11-17 Thread Phyo Arkar
Ok , So have to avoid it then . Np :) On Mon, Nov 17, 2008 at 10:12 PM, billf <[EMAIL PROTECTED]>wrote: > > According to > http://www.petefreitag.com/tools/sql_reserved_words_checker/?word=release > > "release" is a reserved word in DB2, MySQL 5.0 and PostgreSQL 8. > > On Nov 17, 9:24 pm, mdipier

[web2py:12024] Re: Strange SQLDB Problem.

2008-11-17 Thread billf
According to http://www.petefreitag.com/tools/sql_reserved_words_checker/?word=release "release" is a reserved word in DB2, MySQL 5.0 and PostgreSQL 8. On Nov 17, 9:24 pm, mdipierro <[EMAIL PROTECTED]> wrote: > maybe release is a SQL reserved keyword. > > Massimo > > On Nov 17, 3:19 pm, "Phyo A

[web2py:12023] Re: web2py foundation

2008-11-17 Thread billf
tbh I have been sitting on my hands for a while but a few other posts have touched on some of the real difficulties so I hope I will not been seen as the only negative/questioning voice. I start from the point that I think the aims are wonderful. But... To begin with, most of the aims of sharing

[web2py:12022] Re: Weird thing with SQLFORM

2008-11-17 Thread pigmej
Did not works. On Nov 17, 10:26 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Do not know whitout lookig at models but try replace > > db.docs_pages_ver.category.requires=IS_NULL_OR(IS_IN_DB > (db,'docs_categories.id','docs_categories.name',error_message="...")) > > with > > db.docs_pages_ver.catego

[web2py:12021] Re: Weird thing with SQLFORM

2008-11-17 Thread mdipierro
Do not know whitout lookig at models but try replace db.docs_pages_ver.category.requires=IS_NULL_OR(IS_IN_DB (db,'docs_categories.id','docs_categories.name',error_message="...")) with db.docs_pages_ver.category.requires=IS_NULL_OR(IS_IN_DB (db,'docs_categories.id','%(id)s',error_message="..."))

[web2py:12019] Re: Strange SQLDB Problem.

2008-11-17 Thread mdipierro
maybe release is a SQL reserved keyword. Massimo On Nov 17, 3:19 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > When you define a table with field name 'release' it gives out SQL error!!! > When that name is changed , theres no more problem. > > Weird? --~--~-~--~~~---

[web2py:12020] Re: where to put view logic

2008-11-17 Thread Timothy Farrell
You're almost there. Yes, put all of the if/then logic in the controller, that what controllers are made for. The purpose of MVC separation is make the View and Controller completely abstracted pieces. Ideally, doing any HTML work in the controller is an MVC violation.  Instead you should p

[web2py:12018] remote access to admin

2008-11-17 Thread davidjensen
I just solved the problem with help from someone else. It seems to do with executing mv parameters_8000.py parameters_80.py after starting and stopping web2py Thanks to Christophe Gragnic and alwaysdata.com, I finally have web2py working on a reasonable cost hosting service after 7 months experim

[web2py:12017] Re: paging view

2008-11-17 Thread mdipierro
t2.itemize(db.table) does pagination by default. There is an AlterEgo entry that does it manually. Massimo On Nov 17, 3:00 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > Is there a view or something that will allow the paging of db results? > In my scholarship app, I'd like the students to be abl

[web2py:12016] Strange SQLDB Problem.

2008-11-17 Thread Phyo Arkar
When you define a table with field name 'release' it gives out SQL error!!! When that name is changed , theres no more problem. Weird? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To

[web2py:12015] where to put view logic

2008-11-17 Thread Wes James
Is the best place to create data for views in the controller. For instance, after a student enters some initial data, I need to look at that data and determine what scholarships they might be eligible for. Along with the student data and a scholarship table, I need to do a bunch of "if then" log

[web2py:12014] Weird thing with SQLFORM

2008-11-17 Thread pigmej
Controler: def test(): values=db(db.docs_pages_ver.id==47).select()[0] return SQLFORM(db.docs_pages_ver,values,showid = False) model: db.docs_pages_ver.category.requires=IS_NULL_OR(IS_IN_DB (db,'docs_categories.id','docs_categories.name',error_message="...")) db.docs_pages_ver.author.re

[web2py:12013] Re: web2py foundation

2008-11-17 Thread achipa
Some terminology note (this is what I mean when I say foundations are a gray area for many here): in OSS foundation lingo, incubator status is for projects or software that wants to join, but has not yet fulfilled or agreed on all the criteria required by the foundation (either technically or mana

[web2py:12012] paging view

2008-11-17 Thread Wes James
Is there a view or something that will allow the paging of db results? In my scholarship app, I'd like the students to be able to read about the different scholarships if they want to, say 10 at a time and have a next/prev nav capability. Also, in the puppy demo I remember being able to click on

[web2py:12011] Re: are all pacthes in?

2008-11-17 Thread mdipierro
Please resend it to me... sorry I put that one on hold since I am still trying to figure out something. Massimo On Nov 17, 2:40 pm, achipa <[EMAIL PROTECTED]> wrote: > The cron patch seems to be missing. I do have a newer version than the > one I sent you a while back (now with external/system c

[web2py:12010] Re: are all pacthes in?

2008-11-17 Thread achipa
The cron patch seems to be missing. I do have a newer version than the one I sent you a while back (now with external/system cron support), so if you still want to include it, let me know so I could send you the latest version. On Nov 17, 9:22 pm, mdipierro <[EMAIL PROTECTED]> wrote: > ... or did

[web2py:12009] are all pacthes in?

2008-11-17 Thread mdipierro
... or did I miss something? Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send ema

[web2py:12008] Re: Web2py and pexpect?

2008-11-17 Thread mdipierro
I mean actual process, not session. You run into problems if you start two instances of web2py on the same machine or on different machines. Also mind that the cache uses the filename as key (first argument of cache.ram) to retrieve the file. You may want the key dependent on the response.session

[web2py:12007] Re: Web2py and pexpect?

2008-11-17 Thread artien
Thanks the cache.ram works :) One process running web2py do you mean as in actual processes or as in sessions? Artien On Nov 17, 8:00 pm, mdipierro <[EMAIL PROTECTED]> wrote: > You are trying to create a process from one action (one http request) > and access it from another one. This is what pe

[web2py:12006] Re: web2py foundation

2008-11-17 Thread mdipierro
Companies are members if employees of the company pass the certification and if they ask to be listed. I am thinking of certifying web2py but also debian/ubuntu, postgresql, apache, cherokee, and other programs considered to be high quality and relevant by the members. I also want to certify qual

[web2py:12005] Re: web2py foundation

2008-11-17 Thread BBi
On 14 nov, 22:01, mdipierro <[EMAIL PROTECTED]> wrote: > I want to create an association of users, not a foundation. The > purpose of the association would be: > > 1) promote the use of free software in general (not just web2py) I'm certainly in for an association aboutweb2py. However, promoting

[web2py:12004] remote access to admin

2008-11-17 Thread davidjensen
I have web2py running on a hosting service. I am trying to get to the administration/code writing section remotely. How do I do this? I tried in applications/admin/controllers/default.py, replacing raise HTTP(200,T('Admin is disabled because unsecure channel')) with pass#raise HTTP(200,T('Admin i

[web2py:12003] Re: custom code

2008-11-17 Thread Wes James
yes, i kinda thought that was what he meant, and if i had looked at the code closer, i would have realized that - my untrained eye did not remember, that a function can have a variable with a default value, but if you pass something i that place it will use what you pass. thx Yarko -wj On

[web2py:12002] Re: custom code

2008-11-17 Thread Wes James
this is awesome - it worked!! (and Massimo says "no duh") -wj On Mon, Nov 17, 2008 at 12:43 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > you can do > > ...requires=IS_MATH('\d+',error_message=T('hey, must be a number!')) > > every validator takes error_message > > Massimo > > On Nov 17, 1:39 pm

[web2py:12001] Re: custom code

2008-11-17 Thread Yarko Tymciurak
If you look at gluon/validators.py, you'll see IS_MATCH is a class; Massimo showed (w/ typos ;-) how to override the default of the __init__() for error_message (which is called when the object of the class is created, e.g. in the: ...requires=IS_MATCH()call The argument to IS_MATCH i

[web2py:12000] Re: custom code

2008-11-17 Thread Wes James
that is just the next question I was going to ask if there is a way to add text at the beginning (in the model definition). Thx -wj On Mon, Nov 17, 2008 at 12:43 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > you can do > > ...requires=IS_MATH('\d+',error_message=T('hey, must be a number!'))

[web2py:11999] Re: custom code

2008-11-17 Thread mdipierro
you can do ...requires=IS_MATH('\d+',error_message=T('hey, must be a number!')) every validator takes error_message Massimo On Nov 17, 1:39 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > ok, wingide has helped me find what text fills the class="error">. I would like to create a custom IS_MATCH

[web2py:11998] Re: custom code

2008-11-17 Thread [EMAIL PROTECTED]
yes I know i can also use: find . -exec grep "invalid expression" {} \; -print but sometimes that spews a lot of stuff. I did use it this time to find validators.py, though and I put a break in wingide to see things happen - very cool app -> wingide. -wj On Nov 17, 12:39 pm, "Wes James" <[EMA

[web2py:11997] Re: web2py 1.50

2008-11-17 Thread mdipierro
Yes, please post an example. It may help other people too. On Nov 17, 1:14 pm, artien <[EMAIL PROTECTED]> wrote: > It fills the data the forms again just fine like we mailed about > before! > > I still notice that form.accepts(request.vars, session) breaks for me > at the same spot (one form with

[web2py:11996] custom code

2008-11-17 Thread Wes James
ok, wingide has helped me find what text fills the . I would like to create a custom IS_MATCH so i can have a custom error message for a particular field. Other than copy and pasting IS_MATCH in validators.py to a new function, is there a different way to do this? thx, -wj --~--~-~--

[web2py:11995] Re: web2py and wingide

2008-11-17 Thread Wes James
That is probably the diff. You have the full version. -thx On Mon, Nov 17, 2008 at 12:18 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > Since this is written in wxPython, I think OS/X version will be less > different than the 101 version vs. the "full" version I have. > > At the top, there sh

[web2py:11994] Re: web2py and wingide

2008-11-17 Thread Yarko Tymciurak
Since this is written in wxPython, I think OS/X version will be less different than the 101 version vs. the "full" version I have. At the top, there should be menu items - project among them (right of "File") --- that's where I do "Project --> New..." I'll send some screenshots along later this

[web2py:11993] Re: web2py 1.50

2008-11-17 Thread artien
It fills the data the forms again just fine like we mailed about before! I still notice that form.accepts(request.vars, session) breaks for me at the same spot (one form with 2 buttons, one validates just fine the other doesn't validate) as it did in 1.49.1 (but doesn't in 1.47). If you need more

[web2py:11990] Re: Web2py and pexpect?

2008-11-17 Thread mdipierro
You are trying to create a process from one action (one http request) and access it from another one. This is what pexpect is for. I have neve used it before. The problem is that objects create in one request are not persistant unless you say do. There are two mechanisms for persistance: session

[web2py:11992] Re: web2py 1.50

2008-11-17 Thread ceej
Very nice, did you see my previous post? http://groups.google.com/group/web2py/browse_thread/thread/9bd0c9a576ab7868/a6585d40d86f9b02#a6585d40d86f9b02 On Nov 17, 10:51 am, mdipierro <[EMAIL PROTECTED]> wrote: > I posted web2py 1.50 > > this fixes some bug introduced in 1.49 with custom forms, the

[web2py:11991] Re: Possible bug in IS_URL

2008-11-17 Thread mdipierro
What is in the VERSION file. I just posted a new IS_URL one minute ago. Massimo On Nov 17, 12:51 pm, pigmej <[EMAIL PROTECTED]> wrote: > Latest SVN > > On Nov 17, 6:30 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > > > Can you give some details about what you are running from? Source? > >

[web2py:11989] Re: web2py foundation

2008-11-17 Thread achipa
Please take a look at OSGeo. If you have companies like Autodesk joining in, you can't say it's not being taken seriously. Also, OSGeo has a far broader reach as it has half a dozen very different projects under it's umbrella and at least as much in incubation. With regard to differentiating devel

[web2py:11987] web2py 1.50

2008-11-17 Thread mdipierro
I posted web2py 1.50 this fixes some bug introduced in 1.49 with custom forms, the new IS_URL validator written by Jonathan Benn and no more warnings for missing database drivers (Attila Csipa). Please give it a try! Massimo --~--~-~--~~~---~--~~ You received thi

[web2py:11988] Re: Possible bug in IS_URL

2008-11-17 Thread pigmej
Latest SVN On Nov 17, 6:30 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > Can you give some details about what you are running from?  Source? >  version? > (This sounds like a bug - although  the first isn't a well-formed web2py > url, it is a valid url) > > On Mon, Nov 17, 2008 at 11:21 AM,

[web2py:11986] Re: web2py and wingide

2008-11-17 Thread Wes James
ok, i set a break point in default.py in admin folder and click on admin and it caught the break. I need to do some poking thx, -wj On Mon, Nov 17, 2008 at 11:34 AM, Wes James <[EMAIL PROTECTED]> wrote: > LOL, thx Yarko! > > I got in to the wsgiserver.py and now i'm stuck there or somethi

[web2py:11985] Re: web2py and wingide

2008-11-17 Thread Wes James
LOL, thx Yarko! I got in to the wsgiserver.py and now i'm stuck there or something. The debugger is running, but i'm not sure where it's at. Another thing, is I don't see a way to make a project. Are you using the osx version? If you are using windows version, it might be different. I don't s

[web2py:11984] Web2py and pexpect?

2008-11-17 Thread artien
Hello, I'm trying to use pexpect from web2py with limited success. What I notice is that web2py doesn't treat the object like a normal python program would. A simple example (my real program creates ssh sessions this is just to demonstrate the issue): with ajax I call two functions: first it c

[web2py:11983] Re: web2py and wingide

2008-11-17 Thread Yarko Tymciurak
double clicking on a file in the project explorer (file list, on right) will open that file... Ok - that's enough from me - have fun! On Mon, Nov 17, 2008 at 12:21 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > (can you tell I like WingIDE?) > > > On Mon, Nov 17, 2008 at 12:20 PM, Yarko Tymciur

[web2py:11982] Re: web2py and wingide

2008-11-17 Thread Yarko Tymciurak
(can you tell I like WingIDE?) On Mon, Nov 17, 2008 at 12:20 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > One more hint: > When looking at the code file - hover over it's tab to see the path; the > pull-down at the top of file window shows the structure you are within > (class or function n

[web2py:11981] Re: web2py and wingide

2008-11-17 Thread Yarko Tymciurak
One more hint: When looking at the code file - hover over it's tab to see the path; the pull-down at the top of file window shows the structure you are within (class or function name) The left / right arrows at the top of the file window are like browser navigation: they take you to the last pl

[web2py:11980] Re: web2py and wingide

2008-11-17 Thread Yarko Tymciurak
Other hints: Look in "Stack Data" - that's where local & global variables are; Set breakpoints by clicking left of code (next to line); you can enable and disable them in the Breakpoints window. Search in Files: select a directory (just gluon, for example; project files for another example; j

[web2py:11979] Re: web2py and wingide

2008-11-17 Thread Yarko Tymciurak
For WingIDE - Ignore Massimo's note; read mine. On Mon, Nov 17, 2008 at 12:10 PM, Wes James <[EMAIL PROTECTED]> wrote: > > ok, i'll need to look at some path settings in wingide. thx -wj > > On Mon, Nov 17, 2008 at 11:09 AM, mdipierro <[EMAIL PROTECTED]> > wrote: > > > > Do not know if this hel

[web2py:11978] Re: web2py and wingide

2008-11-17 Thread Yarko Tymciurak
-S ... -M is for console interaction w/ web2py... You want to run "normally" in WingIDE... Create a new project in WingIDE. Add directory, recursive (the web2py source trunk direcotory on your machine); I added my web2py trunk to the Python Path in my project, and set the initial directory to

[web2py:11977] Re: web2py and wingide

2008-11-17 Thread Wes James
ok, i'll need to look at some path settings in wingide. thx -wj On Mon, Nov 17, 2008 at 11:09 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > Do not know if this helps, but usually > > root:no cache.disk > > means it is trying to write in folder where it has no write > permission. > > Massimo > > O

[web2py:11976] Re: web2py and wingide

2008-11-17 Thread mdipierro
Do not know if this helps, but usually root:no cache.disk means it is trying to write in folder where it has no write permission. Massimo On Nov 17, 11:53 am, "Wes James" <[EMAIL PROTECTED]> wrote: > Can someone give me some tips on how to run wingide with web2py? > > I have wingide running on

[web2py:11975] web2py and wingide

2008-11-17 Thread Wes James
Can someone give me some tips on how to run wingide with web2py? I have wingide running on os 10.5. I then set -S app -M in the Source File/Debug/Run Arguments. I set a breakpoint at start(). When I run through it I get a warning about root:no cache.disk then a System Exit. If I have no break

[web2py:11974] Re: Possible bug in IS_URL

2008-11-17 Thread Yarko Tymciurak
Can you give some details about what you are running from? Source? version? (This sounds like a bug - although the first isn't a well-formed web2py url, it is a valid url) On Mon, Nov 17, 2008 at 11:21 AM, pigmej <[EMAIL PROTECTED]> wrote: > > db.pages.original_link.requires=IS_NULL_OR(IS_UR

[web2py:11973] Re: Possible bug in IS_URL

2008-11-17 Thread pigmej
db.pages.original_link.requires=IS_NULL_OR(IS_URL (error_message="...")) it returns error for http://domain.com/file.html but it works for http://domain.com Is it bug or "feature" ? On Nov 12, 5:25 am, Jonathan Benn <[EMAIL PROTECTED]> wrote: > Hi Achipa, > > On Nov 12, 1:54 am, achipa <[EMAIL

[web2py:11972] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread Yarko Tymciurak
Glad to hear. In case the link doesn't work for others (and to link this disucssion for future searches), search for "Prepopulate form" On Mon, Nov 17, 2008 at 10:31 AM, pigmej <[EMAIL PROTECTED]> wrote: > > Yarko that was exactly what I need :) > > Thanks. > > On Nov 17, 4:45 pm, "Yarko Tymciu

[web2py:11971] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread pigmej
Yarko that was exactly what I need :) Thanks. On Nov 17, 4:45 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > I see - use a record as a template for new record creation - so that you can > have "default" values based on some existing record (not just "hard wired" > in code). > There was a dis

[web2py:11970] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread Yarko Tymciurak
I see - use a record as a template for new record creation - so that you can have "default" values based on some existing record (not just "hard wired" in code). There was a discussion of this some time back in the group... I think this answers it http://groups.google.com/group/web2py/browse_thre

[web2py:11969] Re: web2py foundation

2008-11-17 Thread Yarko Tymciurak
Two points: - I think Massimo's point of wanting an association is to encourage more people to take web2py seriously, and associate and differentiate skilled developers; - It's not just about web2py; I believe that is accurate. Regards, Yarko On Mon, Nov 17, 2008 at 8:45 AM, Vidul Petrov <[EMAI

[web2py:11968] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread pigmej
No... Example: table pages: id|content|...| now in form I will add new records, update existing records, and create new records with are based on old. Add new and update is trivial, but what with adding new records with modifield content of old record. On Nov 17, 4:00 pm, Vidul Petrov <[EMAIL

[web2py:11967] Re: ... and you can run *some* SQLALchemy models in web2py

2008-11-17 Thread mdipierro
- The Table must have an integer field called 'id'. - ForeignKey must always reference such field. - Many SQLAlchemey field attributes are ignored. - It does not check for errors. - This is not the recommended way to use web2py. This is designed to lower the entry barrier for current SQLAlchem

[web2py:11966] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread Vidul Petrov
I guess Jędrzej means "readony fields". On Nov 17, 3:00 pm, billf <[EMAIL PROTECTED]> wrote: > I'm sorry I don't understand your requirements. > > When you say: "I would like to create SQLFORM with inserts data to db, > but I would > like to see values from database there",  which "values from da

[web2py:11965] Re: web2py foundation

2008-11-17 Thread Vidul Petrov
Hi Massimo, Splendid idea! I am in. This project will encourage more and more newcomers (I have no doubt). Vidul On Nov 14, 11:01 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Actually I was thinking about something similar but also different. > > I want to create an association of users, not a f

[web2py:11962] Re: Firefox and closing tickets

2008-11-17 Thread mdipierro
I have never seen this. Odd. On Nov 17, 2:00 am, billf <[EMAIL PROTECTED]> wrote: > Not a major gripe I know but can anyone tell me why closing a Firefox > tab including a web2py ticket takes 20-30 seconds while closing a tab > containing anything else is almost instant? --~--~-~--~~-

[web2py:11964] Re: new command line switches

2008-11-17 Thread mdipierro
agree. Can somebody send me a patch? Massimo On Nov 17, 5:28 am, "Daniel Contag" <[EMAIL PROTECTED]> wrote: > I agree. That's a very useful suggestion, Achipa. > > Daniel > > On Mon, Nov 17, 2008 at 12:24, achipa <[EMAIL PROTECTED]> wrote: > > > Just to bump this a bit... I'm contemplating that

[web2py:11963] Re: IS_IN_SET() usage

2008-11-17 Thread mdipierro
Correction... IS_IN_DB(db,'activitytypes.code','%(code)s') The select is web2py when the form is instantiated. Massimo On Nov 17, 2:44 am, billf <[EMAIL PROTECTED]> wrote: > IS_IN_DB(db().select(db.activitytypes.ALL),'activitytypes.code') > > IS_IN_DB also creates a dropdown list > > On Nov 17

[web2py:11961] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread billf
I'm sorry I don't understand your requirements. When you say: "I would like to create SQLFORM with inserts data to db, but I would like to see values from database there", which "values from database" are you referring to"? Previous inserted records? then pass a list of records as in the recip

[web2py:11960] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread pigmej
No, In cookbook there are different things. I'll have something different. I have one "template page" in database ( text, html, relations etc... ) Now i would like to create new page based on this template, without selecting many values again ( checkboxes etc ). If I generate SQLFORM() with "val

[web2py:11959] Re: Way to generate atom feed

2008-11-17 Thread pigmej
Hmmm, Sure, if I made it to work as a module ;) When I'll find some free time, I'll write it ;) On 17 Lis, 05:36, Jonathan Benn <[EMAIL PROTECTED]> wrote: > Hi Pigmej, > > On Nov 16, 2:03 am, pigmej <[EMAIL PROTECTED]> wrote: > > > I think for atom better is pyatom :) > > I use it always :) So

[web2py:11958] Re: new command line switches

2008-11-17 Thread Daniel Contag
I agree. That's a very useful suggestion, Achipa. Daniel On Mon, Nov 17, 2008 at 12:24, achipa <[EMAIL PROTECTED]> wrote: > > Just to bump this a bit... I'm contemplating that maybe we shouldn't > do database logging.warnings at all. We could just collect a list of > drivers that we were able t

[web2py:11957] Re: new command line switches

2008-11-17 Thread achipa
Just to bump this a bit... I'm contemplating that maybe we shouldn't do database logging.warnings at all. We could just collect a list of drivers that we were able to import and later just display that as 'Database drivers available: %s'. That would perhaps also a bit less confusing for new users

[web2py:11956] Re: IS_IN_SET() usage

2008-11-17 Thread billf
IS_IN_DB(db().select(db.activitytypes.ALL),'activitytypes.code') IS_IN_DB also creates a dropdown list On Nov 17, 8:20 am, "marco prosperi" <[EMAIL PROTECTED]> wrote: > hello everybody, I would like to do something similar to > > db.activity.activitytype.requires=[IS_NOT_EMPTY(),IS_IN_SET([ x fo

[web2py:11954] Re: Web2py & Elixir

2008-11-17 Thread billf
Massimo The problem with the above example is that, tho' it works fine first time thru', subsequent executions (for me at least) result in "'users' referenced before assignment" Once the tables have been created, I believe the controller code must reference them as "db.users.insert..." and db.d

[web2py:11955] IS_IN_SET() usage

2008-11-17 Thread marco prosperi
hello everybody, I would like to do something similar to db.activity.activitytype.requires=[IS_NOT_EMPTY(),IS_IN_SET([ x for x in db().select(db.activitytypes.code)] )] to let the user be able to choose between values defined in another table (activitytypes), not in a mymodel.py file (I will modi

[web2py:11953] Firefox and closing tickets

2008-11-17 Thread billf
Not a major gripe I know but can anyone tell me why closing a Firefox tab including a web2py ticket takes 20-30 seconds while closing a tab containing anything else is almost instant? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the