Re: [web2py] Re: 250+ users one application

2010-09-02 Thread Yarko Tymciurak
- this will be most of your work I will guess. Everything else, and most of what you want will be easy by comparison. Best regards, Yarko attachment: annet.svg

[web2py] Re: command line interracting with web2py app

2010-07-05 Thread Yarko Tymciurak
On Jul 5, 12:20 pm, Jean-Guy jean...@gmail.com wrote: Hello, How may I use web2py with ipython shell? ... if you have ipython installed, web2py shell should pick it up. I use this command to start ipython with my app : python web2py.py -a 'recycle' --shell=APP_NAME -i 127.0.0.1 -p 8000

[web2py] Re: command line interracting with web2py app

2010-07-05 Thread Yarko Tymciurak
you can also find info here: http://web2py.com/book/default/section/4/1?search=shell The help option to web2py is most likely to be current. On Jul 5, 12:20 pm, Jean-Guy jean...@gmail.com wrote: Hello, How may I use web2py with ipython shell? I use this command to start ipython with my app

[web2py] Re: Initiating table

2010-07-04 Thread Yarko Tymciurak
db.define_table('locus', Field('name'), Field('main_name'), Field('process_id', db.process)) This is the kind of relationships I would expect you might start with (and something that would give you all the information you needed;) Perhaps this is helpful. Regards, - Yarko On 7/4/10, mdipierro mdipie

[web2py] Re: Initiating table

2010-07-03 Thread Yarko Tymciurak
The online book has a fairly useful search; For your question, see: http://web2py.com/book/default/section/6/13 Regards, - Yarko On Jul 3, 8:45 am, Rick sababa.sab...@gmail.com wrote: Hi, I would like to link a table to its own model like this:         db.define_table('person

[web2py] Re: Initiating table

2010-07-03 Thread Yarko Tymciurak
about - this is a web- based modeling tool: http://code.google.com/p/wwwsqldesigner/ (you can follow / use the demo installation). Draw the relationships, clarify, organize your thoughts first. Regards, - Yarko On 7/3/10, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: The online book

[web2py] Re: Regarding post-processing of upload files?

2010-07-01 Thread Yarko Tymciurak
this helps. Regards, - Yarko best regards, TC

[web2py] Re: folder default

2010-07-01 Thread Yarko Tymciurak
your_application/views/controller/ function.html last folder you were in - what does this mean? (remember: web requests are stateless, except for what you store in session cookies) hope this helps a little, - Yarko I mean if I create other folders and I put my stuff in in when I make a redirect

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

2010-06-30 Thread Yarko Tymciurak
for the typo, it is exactly a _blank target attribute desidered output a href =show target=_blanklink name/a Like this: A( B('link name'), _href = URL(r=request, f='show', args=x.id), _target = _blank ) Hope this helps, - Yarko

[web2py] Re: web2py security - keep it up!

2010-06-30 Thread Yarko Tymciurak
transparent --- a little thinking about this should come to a solution (hmac_key is currently persisted in a source file...) ... Good discussion, guys - lovely to see this! - Yarko I suggest that the key be pulled in from the configuration inside CRYPT so that the caller isn't required to pass

[web2py] Re: sql.py error?

2010-06-29 Thread Yarko Tymciurak
can you give a complete example necessary to reproduce? Alternatively, you can debug yourself: set a breakpoint at gluon/ tools.py::Auth:add_permission() and analyze what's going on... - Yarko On Jun 29, 2:13 pm, Chris S sanders.ch...@gmail.com wrote: Crap that should read: To reproduce

[web2py] Re: sql.py error?

2010-06-29 Thread Yarko Tymciurak
should be fine. - Yarko  Here's all you should need to know if the above isn't descriptive enough. In db.py: auth = Auth(globals(),db)           # authentication/authorization auth.define_tables()                # creates all needed tables Using Appadmin -Add a user to auth_users

[web2py] Re: language files can not edit directly

2010-06-27 Thread Yarko Tymciurak
On Jun 27, 7:55 am, dlin dlin...@gmail.com wrote: Q1. Languages file is not easy to edit by editor directly, because it translate the utf-8 into backslash numbers.  I think the translate application should write out directly code instead of blackslash number. Update the translation using the

[web2py] Re: Anvanced applications in gae

2010-06-27 Thread Yarko Tymciurak
, then you can see changes from wing). Regards, - Yarko On Jun 27, 3:28 pm, mdipierro mdipie...@cs.depaul.edu wrote: Maybe just add a new property dynamically to the row We could call it 'nativeRef' Would it be something like:     self.nativeRef = tmp     # Python can add new properties

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

2010-06-27 Thread Yarko Tymciurak
db.auth.myfield.readable = False In your profile controller, set it to True; On Jun 27, 6:34 pm, Giuseppe Luca Scrofani glsdes...@gmail.com wrote: 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

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

2010-06-27 Thread Yarko Tymciurak
whatever condition you choose, and however you decide to implement what you want, the readable attributes will help you accomplish what you want. You can search for more information here: http://web2py.com/book/default/section/6/4?search=readable On Jun 27, 7:59 pm, Giuseppe Luca Scrofani

[web2py] Re: upload bug in filename

2010-06-26 Thread Yarko Tymciurak
On Jun 26, 12:46 pm, Swell swel...@googlemail.com wrote: Yes i am using web2py 1.79.2 on windows 7 64b Can someone try to save the web2py files in a very long directory name ( something like 200 characters ) and use the kind of filename i provided ( long ) and see what is happening on

[web2py] Re: upload bug in filename

2010-06-26 Thread Yarko Tymciurak
),please report details. Regards, - Yarko

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

2010-06-26 Thread Yarko Tymciurak
On Jun 26, 4:31 pm, Giuseppe Luca Scrofani glsdes...@gmail.com wrote: Hi all, I have to {{include sidebar.html}} in every page of a site, ... you might want to then put this in your site's views/layout.html file; and one of the elements in this include is a little form (a text field and a

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

2010-06-26 Thread Yarko Tymciurak
', Field('one'), Field('two')) form = SQLFORM(db.example, formstyle = 'divs' ) print form Regards, - Yarko gls

[web2py] Re: Generate input from db field...

2010-06-25 Thread Yarko Tymciurak
On Jun 25, 3:24 am, Andrew Buchan andyha...@gmail.com wrote: Sorry for delay in getting back. I eventually opted for a solution which does not involve JQuery, instead a department-specific list of fields is passed to SQLForm, which makes things so much simpler. The only draw back is that the

[web2py] Re: upload bug in filename

2010-06-25 Thread Yarko Tymciurak
be a specific error code - it would be good to see if this makes it through back into python, and then ensure we are doing appropriate exception catching. Thank you, - Yarko On Jun 25, 3:39 am, Swell swel...@googlemail.com wrote: Ok i have been able to reproduce the bug , it works perfectly

[web2py] Re: Generate input from db field...

2010-06-25 Thread Yarko Tymciurak
On Jun 25, 3:50 am, Andrew Buchan andyha...@gmail.com wrote: Yarko, I tried doing this with a DIV, but if I put the whole form within the DIV, I meant submitting the first form, and doing a LOAD() in another part of the page conditionally, based on some submit value of the first form (instead

[web2py] Re: upload bug in filename

2010-06-24 Thread Yarko Tymciurak
, and I can download each. I tested this on mac; I expect this would also work on linux; Someone will have to see if there is an issue w/ PC's, but for now - I am not able to reproduce your issue. Regards, - Yarko then if i try to use the database administration tool available in Models

[web2py] Re: upload bug in filename

2010-06-24 Thread Yarko Tymciurak
By the way - The filename in the upload directory was 194 characters --- it's entirely possible that windows was having trouble with this. Here is the listing of my test uploads directory (the first was just a 'normal' length file): -rw-r--r-- 1 yarko staff 2642 Jun 24 17:33 test.file

[web2py] Re: upload bug in filename

2010-06-24 Thread Yarko Tymciurak
:     request.folder = os.path.join(request.env.web2py_path,             'applications', request.application) + '/' On Jun 25, 11:15 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: By the way - The filename in the upload directory was 194 characters --- it's entirely possible that windows

[web2py] Re: Hidden SQLFORM.factory Field

2010-06-23 Thread Yarko Tymciurak
to dynamically include the field in a form). Note: you can also make a memory database, and define a table in memory Hope this is helpful. - Yarko THX

[web2py] Re: Anvanced applications in gae

2010-06-23 Thread Yarko Tymciurak
have a parent / child table, with id of the parent in a parent field, id of a child in child field).. I'm not sure I know what you want / why you want this, why an attribute on a field is special for your request - Yarko Carles El 22/06/2010, a las 19:56, Carles Gonzalez carle

[web2py] Re: pyamf installation issues

2010-06-22 Thread Yarko Tymciurak
On Jun 21, 9:09 pm, Yarin ykess...@gmail.com wrote: Roger that Yarko- I will do as you say.  Big thanks to you and Massimo too for sticking with me today- It was my first time on this board, and my first week with web2py, and I've been nothing but impressed with what I've seen- Awesome

[web2py] Re: Generate input from db field...

2010-06-22 Thread Yarko Tymciurak
or the other might be appropriate. - Yarko On Jun 22, 9:56 am, Andrew Buchan andyha...@gmail.com wrote: Hi Massimo, I posted the code below before checking if the form would actually submit. What now happens is that all the fields are put through validation, including those which I hid

[web2py] Re: bug?

2010-06-21 Thread Yarko Tymciurak
, this will work too, although I'm not sure the extra gyrations (make a dict; unwrap a dict) are necessary. Thanks for catching this, Nick! - On Jun 21, 12:41 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Jun 20, 5:52 pm, NickFranceschina nickfrancesch...@gmail.com wrote

[web2py] Re: pyamf installation issues

2010-06-21 Thread Yarko Tymciurak
is running. You probably don't care about that at this point (but if you do, read up on mod_wsgi --- you touch a script to get the wsgi thread only to restart, thus restarting web2py). However, I went so far as to reboot the whole system, so don't think that's the problem. It's not. - Yarko Thanks

[web2py] Re: pyamf installation issues

2010-06-21 Thread Yarko Tymciurak
On Jun 21, 12:18 pm, Yarin ykess...@gmail.com wrote: @Yarko Try to compare these two: $ python -c 'import sys; print sys.path' and, from your web2py directory: $ python web2py.py -S welcome import sys;  print sys.path Compare the two to see what's missing; Results, in order

[web2py] Re: pyamf installation issues

2010-06-21 Thread Yarko Tymciurak
, alternatively, to do this in your parameters*.py file (see http://www.web2py.com/book/default/section/4/1?search=environ). that is, put these lines in either: import os os.environ[PYTHON_EGG_CACHE]= - Yarko  And it's probably not wise to assign ownership of the eggs cache to the apache user

[web2py] Re: pyamf installation issues

2010-06-21 Thread Yarko Tymciurak
proper user for your web2py instance, and set a proper home directory, and this will not be a problem - that is what you need to focus on next I think Regards, - Yarko On Jun 21, 3:37 pm, Yarin ykess...@gmail.com wrote: You should be able to add this to options_std.py;  I think you should be able

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

2010-06-21 Thread Yarko Tymciurak
FYI - for year (years?) www.web2py.com ran on just cherrypy --- it had one problem with download streaming of large files on only some browsers (e.g. downloads of web2py archives would be incomplete). I think cherrypy folks my have fixed that. In anycase, there is precedence for using it for

[web2py] Re: let python get value of a textfield

2010-06-20 Thread Yarko Tymciurak
sorts of stuff /span Hopefully, this has been helpful. - Yarko On Jun 19, 5:42 am, ilovesss2004 yyiillu...@gmail.com wrote: Hi, How can I let python controller get the value of a textfield when I press a button in html page (not a submit button)? Thanks a lot.

[web2py] Re: web2py suggestions

2010-06-20 Thread Yarko Tymciurak
On Jun 20, 10:45 am, Thadeus Burgess thade...@thadeusb.com wrote: I agree with most of these points. http://packages.python.org/web2py_utils/test_runner.html That is about as far as you will get with testing on web2py. You need very hacky code just to run your tests properly. Web2py was

[web2py] Re: let python get value of a textfield

2010-06-20 Thread Yarko Tymciurak
On Jun 20, 1:58 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: Well, maybe this is a good exercise / tutorial in debugging: On Jun 20, 9:02 am, mdipierro mdipie...@cs.depaul.edu wrote: #  this just displays view/default/index.html as it is def index():     return dict() #  demo:  get

[web2py] Re: bug?

2010-06-20 Thread Yarko Tymciurak
you review, and make this correction? - Yarko -Nick Franceschina

[web2py] Re: let python get value of a textfield

2010-06-19 Thread Yarko Tymciurak
, Yarko Thanks a lot.

[web2py] Re: Best practise to render tables

2010-06-19 Thread Yarko Tymciurak
I think maybe Thadeus meant SQLFORM or SQLFORM.factory You can give several tables to SQLFORM.factory. You can display a form (or fields) without making them editable by making the fields not writeable (you don't need to do this in the table - you can do it in the controller, only just

[web2py] Re: How stable is 'shell console' via web browser interface.

2010-06-19 Thread Yarko Tymciurak
with. That would be my best hint... - Yarko - Yarko David

[web2py] Re: for fun

2010-06-18 Thread Yarko Tymciurak
/a) . On Jun 18, 7:23 pm, Richard richar...@gmail.com wrote: yes I did follow the link, of course. But there is no download link there. Do you need to be logged in to see it? If it is available to you can you just post the link here? On Jun 18, 10:57 am, Yarko Tymciurak resultsinsoftw

[web2py] Re: url rewrite for SEO optimization

2010-06-17 Thread Yarko Tymciurak
see http://web2py.com/book/default/section/4/15 In the top web2py folder, there is a routes.example.py On Jun 16, 11:59 pm, KR kaerbu...@gmail.com wrote: routes.py is the way to do it it's a standard file of web2py On 16 juin, 20:36, Michelle Jun michellejun...@gmail.com wrote: hi i

[web2py] Re: LOAD gerates invalid HTML

2010-06-17 Thread Yarko Tymciurak
parameter to the two html.SCRIPT() calls (around line 137 140, I think), something like this: html.SCRIPT( script, _type=text/javascript) Let us know if that helps. Regards, - Yarko On Jun 17, 9:02 am, selecta gr...@delarue-berlin.de wrote: the script tag is generated by the LOAD function so

[web2py] Re: LOAD gerates invalid HTML

2010-06-17 Thread Yarko Tymciurak
On Jun 17, 10:41 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/AlterEgo/default/show/252 fix is in trunk Massimo - ... I see you added _type= to ONE of the html.SCRIPT() calls (the one for no ajax); I think you wanted to add this to both calls, no? - Yarko

[web2py] Re: upload bug in filename

2010-06-17 Thread Yarko Tymciurak
it is your code (somewhere) which is causing your problems; I think you should debug it, and give us enough information to help you without asking us to go on a blind hunting expedition. Regards, - Yarko Am i the only one to see that issue? ( one thing also iis that i am running web2py on windows

[web2py] Re: upload bug in filename

2010-06-17 Thread Yarko Tymciurak
On Jun 17, 6:18 pm, Swell swel...@googlemail.com wrote: thx yarko for your detailed answer. I have not written code so far, I have been using the administrative interface provided by web2py to manage the records in the DB. I am going to generate another test showing this kind of behaviour

[web2py] Re: for fun

2010-06-17 Thread Yarko Tymciurak
On Jun 17, 6:48 pm, Richard richar...@gmail.com wrote: cool. Is the source code available for download? follow the links... On Jun 18, 1:50 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/mazes

[web2py] Re: drop shadow on text in admin editor safari

2010-06-17 Thread Yarko Tymciurak
with the shadow, and look at the Styles column in the inspector to see where the shadow might be coming from. Yeah - you have to enable Perferences Advanced Show Develop Menu, then from that menu Enable Extensions to get this It isn't immediately evident to me what this is. - Yarko

[web2py] Re: How to customize a crud.search() form?

2010-06-17 Thread Yarko Tymciurak
On Jun 17, 8:21 pm, rochacbruno rochacbr...@gmail.com wrote: Ok, I will be waiting, I am trying to do something like this:http://demos.telerik.com/aspnet-ajax/filter/examples/firstlook/defaul... (the demo doesn't seem to work - if you filter, the results don't) but the way the js

[web2py] Re: upload bug in filename

2010-06-15 Thread Yarko Tymciurak
It looks like something else might be wrong here... how are you getting these filenames? On Jun 15, 2:37 am, Swell swel...@googlemail.com wrote: don't really know but i tried with that filename : aaa

[web2py] Re: checking if table exists in database

2010-06-15 Thread Yarko Tymciurak
/section/6/7 http://web2py.com/book/default/section/6/4?search=executesql - Yarko On Jun 15, 3:30 am, mika miss.from.h...@gmail.com wrote: so what I can do if I have database already created? I would like simply to connect db and see if tables exists... by the way, metadata used by web2py

[web2py] Re: working with views or stored procedures.

2010-06-15 Thread Yarko Tymciurak
On Jun 15, 7:13 am, Jose jjac...@gmail.com wrote: On 15 jun, 05:12, Sky hmonfa...@gmail.com wrote: Thank you Jose, but I couldn't find out if you used define_table or not? can you drop me a piece of your code? i get 'invalid query' error when i query on my views. They are declared in

[web2py] Re: my app instead of welcome app???

2010-06-15 Thread Yarko Tymciurak
renaming their desired app to init. As Thadeus points out (albeit for different reasons) there is no real reason to argue this. Done! Regards, - Yarko The only thing is the information should be made easily available in doc in the deployment recipe section... Then when come the time to push

[web2py] Re: where are the auth table model?

2010-06-15 Thread Yarko Tymciurak
with. - Yarko Thanks anyway it appreciate. Jonhy

[web2py] Re: sqlite modeller

2010-06-15 Thread Yarko Tymciurak
it, you'll get an import error... On Mon, Jun 14, 2010 at 12:57 AM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: The generic www sql modeler is: http://code.google.com/p/wwwsqldesigner/ Not sure if anyone has been tracking this, but the code does have web2py (and sqlite) generation

[web2py] Re: Unpredictable sqlite3.dll version being loaded by web2py.exe

2010-06-15 Thread Yarko Tymciurak
On Jun 15, 6:29 pm, Salvor Hardin salvor.pub...@gmail.com wrote: It would be great if web2py.exe loads sqlite3.dll from the same directory as web2py.exe. Unfortunately, web2py loads C:\Windows\System32\sqlite3.dll which is the most unpredictable version of sqlite3.dll on Windows. Hmmm

[web2py] Re: Defining db.py for the first time problem (db references possible?)

2010-06-15 Thread Yarko Tymciurak
On Jun 15, 1:56 pm, zsouthboy zsouth...@gmail.com wrote: Hi Yarko, Thanks for the help! I had initially tried doing what the introductory docs show (which is marking a reference like (image, db.image) for a column), which fails because there is no member 'image' of db yet. Then I consulted

[web2py] Re: Defining db.py for the first time problem (db references possible?)

2010-06-14 Thread Yarko Tymciurak
On Jun 14, 8:51 am, zsouthboy zsouth...@gmail.com wrote: Problem: I don't see how to specify multiple tables with table references to each other. I can't simply define the relationship, because the DAL hasn't created a table yet to reference. But I can't create the table(s) because they

[web2py] Re: Help needed adding rows to a database table...

2010-06-14 Thread Yarko Tymciurak
to the net, but I'm sure he will point you to more. In the meantime, I hope this helps. Let us know if you need more. Regards, - Yarko On Jun 14, 9:37 am, Jeff Elkner j...@elkner.net wrote: It is the end of the school year and my students and I are trying to create simple projects using web2py. Can

[web2py] Re: Help needed adding rows to a database table...

2010-06-14 Thread Yarko Tymciurak
, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: Hi Jeff - Have a look at the examples in Chapter 3 -http://www.web2py.com/book/default/section/3, particularly leading intohttp://www.web2py.com/book/default/section/3/5 This should help you get your example working. It is also helpful

[web2py] Re: Documentation on moving common code into modules?

2010-06-14 Thread Yarko Tymciurak
On Jun 14, 4:21 pm, Robert O'Connor robby.ocon...@gmail.com wrote: throw it into the modules directory in its own file say foo.py -Rob or perhaps utils.py - note that modules will need to be imported everywhere you want to use them (which is ok - use local_import()); An alternative is to

[web2py] Re: Documentation on moving common code into modules?

2010-06-14 Thread Yarko Tymciurak
On Jun 14, 7:19 pm, Richard richar...@gmail.com wrote: have a look at some of the example apps:http://web2py.com/appliances The main issue with migrating model/controller code into modules is you no longer have access to the global variables like db/session/etc. So you have to pass these

[web2py] Re: Multiple domains one web2py installation.

2010-06-13 Thread Yarko Tymciurak
. Regards, - Yarko According to webfaction's support people you cannot install only one web2py application in an account, when I install a second web2py called secondweb2py, how do customweb2py and secondweb2py know about each others existence? Kind regards, Annet.

[web2py] Re: difference between rows.json() and gluon.serializers.json(rows)

2010-06-13 Thread Yarko Tymciurak
On Jun 13, 1:00 pm, NickFranceschina nickfrancesch...@gmail.com wrote: anyone? On Jun 12, 4:52 pm, NickFranceschina nickfrancesch...@gmail.com wrote: if I have a records collection (of type Rows) from a select() call through the DAL...  why is the output different between these two

[web2py] Re: sqlite modeller

2010-06-13 Thread Yarko Tymciurak
The generic www sql modeler is: http://code.google.com/p/wwwsqldesigner/ Not sure if anyone has been tracking this, but the code does have web2py (and sqlite) generation in the source tree. - Yarko On Jun 13, 9:13 pm, nhisyam nhis...@gmail.com wrote: Hi everyone, I am looking for the link

[web2py] Re: WebFactional restart web2py

2010-06-13 Thread Yarko Tymciurak
. To stop the server, enter ./apache2/bin/stop and press Enter. To start the server, enter ./apache2/bin/start and press Enter. - - Yarko any help is greatly appreciated :) Pai

[web2py] Re: No module named PIL

2010-06-12 Thread Yarko Tymciurak
line. - Yarko Kenneth On Jun 12, 1:59 pm, Richard richar...@gmail.com wrote: you likely installed PIL from source into a directory not in your Python path. From the command line you can use PIL with: $ python from PIL import Image On Jun 12, 8:50 pm, Kenneth kenneth.t.lundst

[web2py] Re: Hardening web2py on Linux and Windows servers

2010-06-11 Thread Yarko Tymciurak
This would be a security concern: I do not think you want web executables / files owned by root.You would then be forced to open up accessibility to the files (so that something which _is not root_ can run / read them) --- which would weaken security; OR you would (???) need to run as

[web2py] Re: Hardening web2py on Linux and Windows servers

2010-06-11 Thread Yarko Tymciurak
if you are looking to prevent access, you should instead be doing something like this: chown -R nobody:nobody *.py ... etc. On Jun 11, 5:41 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: This would be a security concern:  I do not think you want web executables / files owned by root

[web2py] injection - realities

2010-06-11 Thread Yarko Tymciurak
Interesting (FYI): http://threatpost.com/en_us/blogs/mass-sql-injection-attack-hits-sites-running-iis-061010

[web2py] Re: best list of jquery plugins I found so far

2010-06-10 Thread Yarko Tymciurak
that comes up as a bad link for me... www.jquery.com/plugins redirects to http://plugins.jquery.com -- is this the one you meant? On Jun 10, 11:04 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.jqueryplugins.com/plugins/

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 11:20 am, mdipierro mdipie...@cs.depaul.edu wrote: Here is my proposal: define the following: request.models=( ('*','db.py'), ('*','model1.py'), ('*','model2.py'), ('default','model3.py'), ('default/a,default/b','model4.py'), ) it specifies the order in which models should

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
it. Thoughts? - Yarko On Jun 10, 11:30 am, Thadeus Burgess thade...@thadeusb.com wrote: What if I needed two controllers to share the same model? Would I then place two definitions in request.models? Not 0.py that is not a valid python filename. Python modules/variables cannot start with numbers

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 3:44 pm, Doug Warren doug.war...@gmail.com wrote: On Thu, Jun 10, 2010 at 10:53 AM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: More discussion, thoughts? (maybe this should move to the web2py developer's thread?) As my request is still 'pending' I'd ask to keep

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
the question still returns to the problem space - and you've added one problem: wanting to share models among we2py apps (e.g. make something like modules of them). Kind regards, - Yarko -- Thadeus On Thu, Jun 10, 2010 at 3:24 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Jun 10

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 1:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: If we are going to work on this we may as well solve a different problem. Executing models take time. If you have 500 tables each defined it its own file, it takes lots of time. Yet not all actions need all tables so we may want to

[web2py] Re: html5 test

2010-06-09 Thread Yarko Tymciurak
Ok - this link - html5test.com - has been updated, and Safari-5 is out today; Out of (now) a total possible 300 points: Safari 5.0 (6533.16): 208 + 10 bonus points; Chrome 5.0.375.70:197 + 7 bonus points; Safari 3.6.3139 + 4 Opera 10.53: 129 + 4 - Yarko

[web2py] Re: email attachments not seen on Macs

2010-06-09 Thread Yarko Tymciurak
There is no reason you need to use webfaction's mail servers if you are hosted on webfaction. try connecting to a different mail server, and run some tests and see what happens. On Jun 9, 12:49 pm, mdipierro mdipie...@cs.depaul.edu wrote: I do not know how to help about this. This seems more

[web2py] Re: Best CSS framework for web2py

2010-06-09 Thread Yarko Tymciurak
On Jun 9, 5:59 pm, Jonathan Lundell jlund...@pobox.com wrote: On Jun 9, 2010, at 5:39 PM, GoldenTiger wrote: Athttp://www.ez-css.org/rapid_prototyping,  code of Module3A and Module3B are identical, but looks different. I don't understand it.  Any help please? The classes are subtly

[web2py] Re: Layout of functions with the MVC environment

2010-06-08 Thread Yarko Tymciurak
doug.war...@gmail.com wrote: On Fri, Jun 4, 2010 at 9:11 AM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Jun 4, 10:58 am, Doug Warren doug.war...@gmail.com wrote: I don't believe I want to local_import my db.py file as it's already set up by the environment correct? Correct

[web2py] Re: html5 test

2010-06-07 Thread Yarko Tymciurak
On Jun 7, 2:28 am, annet annet.verm...@gmail.com wrote: Safari 4.0.5 : 115 0ut of 160 On OS/X 10.6.3: Chrome 5.0.375.55: 142 Safari 4.0.5: 120 Opera 10.53:102 Firefox 3.6.3:101 Not sure how complete this test is (has anyone reviewed the test?

[web2py] Re: html5 test

2010-06-07 Thread Yarko Tymciurak
... I missed that this is being developed, open, by Niels: http://github.com/NielsLeenheer/html5test ...opne to contributions On Jun 7, 1:10 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Jun 7, 2:28 am, annet annet.verm...@gmail.com wrote: Safari 4.0.5 : 115 0ut of 160 On OS/X

[web2py] Re: python web console

2010-06-07 Thread Yarko Tymciurak
Iceberg: could you debug / trace? I too thought the behavior you asked for was already the case, so it is probably getting short circuited somewhere - would be good to see where. - Yarko On Jun 7, 1:11 pm, mdipierro mdipie...@cs.depaul.edu wrote: Not sure I understand. This should

[web2py] Re: Layout of functions with the MVC environment

2010-06-04 Thread Yarko Tymciurak
string (it is so named and setup in the default models/ db.py file). You can change the name of this variable as you like (or change your imports). Hope this at least helps point you out of the forrest. Regards, - Yarko  Are there any non-trivial example applications for web2py?  Most of the ones

[web2py] Re: Layout of functions with the MVC environment

2010-06-04 Thread Yarko Tymciurak
, and validators are coupled to table structure, so if / as you try to abstract away from table definitions, you will run into this. I'm sure others will add more comments... On Fri, Jun 4, 2010 at 8:56 AM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Jun 4, 10:43 am, Doug Warren doug.war

[web2py] Re: Dropbox with (IS_IN_DB) without requires constrains

2010-06-03 Thread Yarko Tymciurak
to own it: db.ownership.cat.requires = IS_NULL_OR( IS_IN_DB( db, 'cat.id', 'cat.name') ) Does that help? Regards, - Yarko Thanks. Jonhy

[web2py] Re: Database Image Rendering

2010-06-03 Thread Yarko Tymciurak
Have you tried something like this: img='data:image/png;base64, {{=encodestring(my_db_stored_image)}}' / (replace png with whatever the correct image format it) Let us know if this works. - Yarko On Jun 3, 11:23 am, Aaron Crowe aaron.h.cr...@gmail.com wrote: How would I go about rendering

[web2py] Re: Database Image Rendering

2010-06-03 Thread Yarko Tymciurak
of the inline data approach. - Yarko

[web2py] Re: Database Image Rendering

2010-06-03 Thread Yarko Tymciurak
On Jun 3, 12:07 pm, mdipierro mdipie...@cs.depaul.edu wrote: Vasile approach (create an action to serve the blob as an image) is to be preferred because Yarko's approach is not cross-browser compatible. Specifically IE 5-7 (see http://www.websiteoptimization.com/speed/tweak/inline-images/);

[web2py] Re: Database Image Rendering

2010-06-03 Thread Yarko Tymciurak
that render images). - Yarko Anyway, if you choose to do it the Yarko's way be careful because you need to base64 encode not urlescape. web2py provides a helper to do this http://web2py.com/examples/static/epydoc/web2py.gluon.html-module.htm... On Jun 3, 11:52 am, Vasile Ermicioi elff

[web2py] Re: unique entry or null validation

2010-06-03 Thread Yarko Tymciurak
On Jun 3, 11:31 pm, dlin dlin...@gmail.com wrote: There is a field which I want user to enter different answer, or just keep in empty. empty, or unique answer: db.table.answer.requires=IS_NULL_OR( IS_NOT_IN_DB( db, 'table.answer' ) ) I've tried by:

[web2py] Re: gitignore

2010-06-02 Thread Yarko Tymciurak
There are things here that are redundant, but you might want to check against http://code.google.com/p/web2py/source/browse/.hgignore In particular, I don't see that you have errors (but might want to); there is more, but I'll let you look thru it. - Yarko On Jun 2, 11:25 am, Doug Warren

[web2py] Re: Frivolous request for login/logout

2010-06-02 Thread Yarko Tymciurak
On Jun 2, 1:52 pm, weheh richard_gor...@verizon.net wrote: @hamdy.a.farag: swet. One of these days I have to memorize the bazillion or so auth.settings. or simply use an IDE / debugger which will do completions for you! On Jun 2, 12:53 pm, hamdy.a.farag hamdy.a.fa...@inbox.com

[web2py] Re: Clearing Database Tables

2010-06-02 Thread Yarko Tymciurak
On Jun 2, 2:04 pm, Thadeus Burgess thade...@thadeusb.com wrote: And for a given field... db(db.table.id 0).update(field = None) You can see all this in the count / delete / update section of http://www.web2py.com/book/default/section/6/5; The behavior of truncate (i.e., resetting counter)

[web2py] Re: web2py Conference Management System

2010-05-31 Thread Yarko Tymciurak
as I understand, and alternative approach is being considered for those aspects of PyCon (although I do not know the details). - Yarko On May 31, 9:25 am, KR kaerbu...@gmail.com wrote: Hello, Thanks for the answers. I tried both versions and none of them works out of the box. Here

[web2py] Re: web2py Conference Management System

2010-05-31 Thread Yarko Tymciurak
On May 31, 11:49 am, mdipierro mdipie...@cs.depaul.edu wrote: On May 31, 11:33 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: web2conf from 2010 will not run with web2py 1.78.3; If you checkout from the pycon2010 repository, which includes the version of web2py. Why

[web2py] Re: web2py Conference Management System

2010-05-31 Thread Yarko Tymciurak
On May 31, 12:10 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 31, 11:49 am, mdipierro mdipie...@cs.depaul.edu wrote: On May 31, 11:33 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: web2conf from 2010 will not run with web2py 1.78.3; If you checkout from

  1   2   3   4   5   6   7   8   9   10   >