[web2py] Web2Py & Pycharm Debugger not working

2017-01-27 Thread Mart N
up vote down votefavorite I just created a new Web2Py project from the Github source (git clone --recursive https://github.com/web2py/web2py.git). While I was working on the project I noticed that my debugger

[web2py] Re: How to use the new cpdb.py introduced in 1.97.1?

2014-05-09 Thread mart
')) # Finally, you just need to commit the changes in your newly populated TARGET BD other_db.commit() Then, your done. I hope this helps, Mart On Friday, May 9, 2014 5:23:58 PM UTC-7, Ben Lawrence wrote: Hi, How did you get to that stage? I get: gluon path not found EXCEPTION: could

[web2py] Re: Copy data from one db into another

2013-07-19 Thread mart
can you provide the exact cmd line that you used as well as the full output displayed in your shell ? Thanks, Mart On Wednesday, July 17, 2013 2:06:39 AM UTC-7, Dave Carlson wrote: Using the provided script cpdb.py and following the outlined procedure in the documentation ( http

[web2py] Re: Copy data from one db into another

2013-07-19 Thread mart
and I can debug from here. regards, Mart On Friday, July 19, 2013 1:50:45 AM UTC-7, Dave Carlson wrote: Hi Mart, this is the entirety of what I'm inputting and getting back in my shell on the command line. Minus the actual username and password for my setup of course. *[ dave@andromeda

[web2py] Re: cpdb.py not working...

2013-04-27 Thread mart
: if you run the script from /web2py/scripts, you can use this relative path with the -d option to find dal.py % python cpdb.py ... bla bla ... -d ../gluon Hope this helps Mart :) On Wednesday, April 24, 2013 2:54:49 AM UTC-7, Rocco wrote: Hi all, I've some trouble

[web2py] Re: web2py and timezones

2013-03-25 Thread mart
My vote would be for validators :) Mart :) -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Re: web2py and timezones

2013-03-21 Thread mart
, presents, different time zones, DLST, DT formats) i work with, things cleared up pretty quickly. Anyways, works for me. - Mart On Sunday, March 17, 2013 7:31:24 PM UTC-7, Massimo Di Pierro wrote: I was looking at code to detect the user timezone and store dates consistently in UTC format. I made

[web2py] Re: cpdb errors

2013-01-08 Thread mart
tree :) ). Anyways, I was just wondering if you were using an older web2py version ? Thanks, Mart :) On Monday, January 7, 2013 8:01:01 PM UTC-8, Simon Ashley wrote: Thanks Mart, That gives me some clues and a renewed focus. Issue may be with postgres (at least the install I had - has been

[web2py] Re: cpdb errors

2013-01-07 Thread mart
sqlite://storage.sqlite -Y postgres://postgres:password@ localhost:5432/db_target I haven't run this in a long time, but just tried it and it ran just fine. Note, the -d option is pointing to a recent dal.py which i simply dumped in the /Users/mart directory. I don't have a windows machine

[web2py] Re: cpdb errors

2013-01-07 Thread mart
this against entire web2py filesets, I simply pointed to a location on my laptop, dumped different versions of dal.py there replacing them with what ever version I found - some old some more recent)... But they all worked. I hope this helps, Mart :) On Monday, January 7, 2013 4:05:40 PM UTC-8, Simon

[web2py] Re: hi

2012-07-15 Thread mart
-to-the-minute corporate pets... So, I would say 'absolutely' go with web2py! learn the basics, evolve, then move on (but always come back ;) ) and apply those basics to other brand name frameworks. And, as mentioned above, showcase what you can do! Mart :) On Thursday, July 12, 2012 2:52:26 AM UTC

[web2py] Re: cpdb errors

2012-05-26 Thread mart
/.../web2py/scripts/. In which case, your -d option would look like this: -d ../gluon. I just did this, and it all worked fine: macMart:Documents mart$ cd Aptana\ Studio\ Workspace/_p4/src/web2py/scripts/ macMart:scripts mart$ python cpdb.py -f ../../db_storage -d ../gluon -y sqlite

Re: [web2py] new feature in trunk: full auditing

2012-04-05 Thread mart
like to follow up with comments and questions (I'll try to keep them short, promise ;) ). I'm about to pull trunk in a few minutes and try this feature. Thanks, Mart :) On Thursday, April 5, 2012 7:11:26 PM UTC-4, Massimo Di Pierro wrote: Now you can. ;-) auth.enable_record_versioning(db

[web2py] Re: Tree view, Rendering

2012-04-03 Thread mart
do you mean that you are looking to parse a directory structure (7 dirs deep) and dump the results to tables ? On Monday, April 2, 2012 8:21:12 PM UTC-4, Simon Ashley wrote: Pretty new to this and stumbling a little. We need to generate a Treeview structure with the bottom node ending with

[web2py] Re: No DB queries in web2py shell?

2012-03-18 Thread mart
that you can tailor it to your own needs (and its re-usable, no matter the DB you are pointing to). I can send a template of the code if interested. Mart On Saturday, March 17, 2012 9:47:55 PM UTC-4, Anthony wrote: On Saturday, March 17, 2012 8:06:38 PM UTC-4, Stefan Scholl wrote: Anthony

[web2py] Re: Workflow engine for web2py

2012-02-07 Thread mart
). Just my 2 cents, Mart On Feb 7, 5:35 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: From what I understand you can do just that, but without reinventing the wheel by designing and implementing your own solution. Richard On Tue, Feb 7, 2012 at 5:27 PM, Ross Peoples ross.peop

[web2py] Re: Workflow engine for web2py

2012-02-07 Thread mart
should also contain a blurb on how it makes use of databases http://help.adobe.com/en_US/livecycle/9.0/overview.pdf ** for those who followed the thread on the use of the word Enterprise, notice the acronym 'ES' in the product's name. Mart :) On Feb 8, 3:07 am, Massimo Di Pierro massimo.dipie

[web2py] Re: launching web2py from script?

2011-11-01 Thread mart
i have a script that launches a few things, including web2py. I use the multiprocessing module and everything starts up. def startWeb2py() name=multiprocessing.current_process().name os.system('python ./blueLite/web2py/web2py.py -a {0} - N'.format(password)) ... Hope this helps, Mart

[web2py] should this work? {{=form[0][-1]}}

2011-10-31 Thread mart
Hi, in a view, should i be able to execute this submit button? {{=form[0] [-1]}} it does display the button, but doesn't submit.. Thanks, Mart :)

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread mart
}} /td /tr /table /fieldset and in the end, there in the {{=form[0][-1]}} for the submit button (which is there, but doesn't submit) Thanks, Mart :) On Oct 31, 8:43 am, Anthony abasta...@gmail.com wrote: FYI, an easy way to check these things is to start a web2py shell, create a form

[web2py] Re: putting a condition in a form

2011-10-31 Thread mart
Hi Denes! Thanks for confirming that. I was hoping it should (would)... Now I just need to find my error. Thanks, Mart :) On Oct 31, 8:45 am, DenesL denes1...@yahoo.ca wrote: It should still work. On Oct 30, 9:02 pm, mart msenecal...@gmail.com wrote: hum... doesn't seem

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread mart
hum right! Ok, I think that's my problem. I will work with that! Thanks :) On Oct 31, 12:20 pm, DenesL denes1...@yahoo.ca wrote: Maybe you are missing some of the other required parts:  form.custom.begin  form.custom.end  form.hidden_fields() On Oct 31, 11:35 am, mart msenecal

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread mart
Awesome! That worked :) Thanks for the help! :) Mart On Oct 31, 12:20 pm, DenesL denes1...@yahoo.ca wrote: Maybe you are missing some of the other required parts:  form.custom.begin  form.custom.end  form.hidden_fields() On Oct 31, 11:35 am, mart msenecal...@gmail.com wrote

[web2py] issueTracking

2011-10-30 Thread mart
Hi, I am shamelessly using Massimo's issueTracking and redoing it to replace my own request app (because obviously, massimo does it better than i could ;) ) If any body has played with it, i would have a few questions: 1) depending on the type of request, i would like the form to expose

[web2py] Re: issueTracking

2011-10-30 Thread mart
: blabla * bla_4 : blabla * bla_5: blabla * etc also, in the 'issue' grid, i am not seeing the dafault view button... does somebody know how to get them to display? ANy help is appreciated :) thanks, Mart :) On Oct 30, 1:43 pm, mart msenecal...@gmail.com wrote: Hi, I am

[web2py] putting a condition in a form

2011-10-30 Thread mart
:) thanks, Mart :)

[web2py] Re: putting a condition in a form

2011-10-30 Thread mart
cool! thanks :) On Oct 30, 5:39 pm, apple simo...@gmail.com wrote: http://web2py.com/book/default/chapter/10#Conditional-Fields-in-Forms On Oct 30, 9:30 pm, mart msenecal...@gmail.com wrote: Hi, does anyone know if I can have some sort of condition in a form (but BEFORE the form

[web2py] Re: putting a condition in a form

2011-10-30 Thread mart
hum... doesn't seem to be working for me... maybe because I am using these things: myTable=db.Table(None,'myTable', Field('name')) db.define_table('stuff',myTable)) oh well, I'll keep digging... Thanks, Mart :) On Oct 30, 7:10 pm, mart msenecal...@gmail.com wrote: cool! thanks

[web2py] windows + apache + mod_wsgi error

2011-10-10 Thread mart
the errors or messages above, and press the ESC key to exit. 23... Any help is appreciated, Thanks, Mart :)

[web2py] Re: windows + apache + mod_wsgi error

2011-10-10 Thread mart
Sorry, the error points to line 518, which is this: LogFormat %h %l %u %t %r %s %b common Thanks, Mart :) On Oct 10, 11:24 pm, mart msenecal...@gmail.com wrote: Hi, has any one gotten this error when using this combination: windows + apache + mod_wsgi ? Syntax error on line 518 of C

[web2py] Re: windows + apache + mod_wsgi error

2011-10-10 Thread mart
found the problem :) line should be: LogFormat %h %l %u %t \%r\ %s %b common instead of LogFormat %h %l %u %t %r %s %b common Service started properly now. Thanks, Mart :) On Oct 10, 11:29 pm, mart msenecal...@gmail.com wrote: Sorry, the error points to line 518, which

[web2py] windows + apache + mod_wsgi -- question 2

2011-10-10 Thread mart
Hi, So this combination seems to be working well, except I can't log in to the admin interface. Getting this msg/exception: admin disabled because unable to access password file Is there a quick fix? Thanks, Mart :)

[web2py] Re: windows + apache + mod_wsgi -- question 2

2011-10-10 Thread mart
Hey MidGe, well, now its an easy one, but that's only because you gave me the answer! :) Thanks for that!, now its working great! Much appreciated, Mart :) On Oct 10, 11:58 pm, MidGe degreef.mic...@gmail.com wrote: heya mart, I think that is an easy one, you need rename a file

[web2py] Re: windows + apache + mod_wsgi -- question 2

2011-10-10 Thread mart
thanks for the tip! :) mart On Oct 11, 12:04 am, MidGe degreef.mic...@gmail.com wrote: By the way, the original file gets created the very first time you run the rocket server. So you need run the server once for a minute or so to let the file be created..  and then rename the file

[web2py] Re: CAS question

2011-10-04 Thread mart
... is this because the consumer is local (127.0.0.1) and the provider is accessed through VPN on the corporate network? thanks, Mart :) On Oct 4, 1:01 am, mart msenecal...@gmail.com wrote: sounds good, will try the cas_domain. Thanks for the suggestion. @ Bruno: I'm using the default auth

[web2py] CAS question

2011-10-03 Thread mart
the other apps don't have certs and do not have admin access (no use of https). Can anyone see what's wrong with what I am doing? As usual, any help is much appreciated. Thanks, Mart :)

[web2py] Re: CAS question

2011-10-03 Thread mart
sounds good, will try the cas_domain. Thanks for the suggestion. @ Bruno: I'm using the default auth tables thanks Mart :) On Oct 3, 11:35 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I re-tested it last week and I cannot reproduce this error. On Oct 3, 10:18 pm, Bruno Rocha

[web2py] Re: table, grid, smartgrid, getting better

2011-08-21 Thread mart
\ ,changed_by=changed_by\ ,date=date\ ,description=description\ ,is_head=is_head) any help would be appreciated (and sorry for the dumb question :) ), Thanks, Mart :) On Aug 19, 12:28 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: ;-D

[web2py] Re: New release of pyForum

2011-08-19 Thread mart
worked perfectly! Thanks for the info (and obviously for letting us use your app!) much appreciated, Mart :) On Aug 19, 1:39 am, Julio Schwarzbeck ju...@techfuel.net wrote: Both questions are addressed in the forums, I appreciate the feedback! http://www.pyforum.org/pyforum/default

[web2py] Re: table, grid, smartgrid, getting better

2011-08-18 Thread mart
a file and dump it somewhere (in a queue). adding an xtra link is doable? thanks, Mart :) On Aug 18, 1:42 pm, Ross Peoples ross.peop...@gmail.com wrote: This is AWESOME! I haven't tried it yet, but sounds awesome. I have to do this all the time, which is why I created plugin_crud for doing it via

[web2py] Re: table, grid, smartgrid, getting better

2011-08-18 Thread mart
a grid based on that table) * from the grid i click on the 'launch_build' link, which will dump create a file and dump it somewhere (in a queue). adding an xtra link is doable? thanks, Mart :) On Aug 18, 2:54 pm, António Ramos ramstei...@gmail.com wrote: where can i download this plugin

[web2py] Re: table, grid, smartgrid, getting better

2011-08-18 Thread mart
WOW! Thank you! this is awesome! :) Mart :) On Aug 18, 5:03 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is a new API so it expects a new syntax for represent that takes two arguments. The second argument is the record. On Aug 18, 2:47 pm, pbreit pbreitenb...@gmail.com

[web2py] Re: table, grid, smartgrid, getting better

2011-08-18 Thread mart
hum... i see the predicament... but ;) on the up side, you're Massimo! :) hope it helps :) Mart On Aug 18, 7:41 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Actually I just killed myself in the foot... I am writing a packt book with some other members of the list. Have to deliver

[web2py] Re: New release of pyForum

2011-08-18 Thread mart
and congratulations! mart :) On Aug 18, 1:44 pm, Julio Schwarzbeck ju...@techfuel.net wrote: My pleasure my friend, more is to come.. On Aug 18, 9:45 am, Daniel Aguayo daniel.agu...@alumnos.inacap.cl wrote: 2011/8/17 Julio Schwarzbeck ju...@techfuel.net Folks, After a hiatus of almost

[web2py] Re: dowloading attachments with AJAX

2011-08-17 Thread mart
HI Mic! This is fantastic! Thanks for the info! :) On Aug 17, 6:33 pm, Michele Comitini michele.comit...@gmail.com wrote: Hi Mart! Copy sample code in my previous mail. to test quicly you cat put the view code somewhere in /welcome/views/default/index.html {{=A(T('be brave!'), _onclick

[web2py] Re: dowloading attachments with AJAX

2011-08-16 Thread mart
Hi Mic! This is very interesting! :) how does it work? you have URL('gen_pdf'), what is that referencing? would you have a model/sample app that we could peek at? :) Thanks, Mart :) On Aug 15, 4:47 pm, Michele Comitini michele.comit...@gmail.com wrote: Suppose you want to make an AJAX call

[web2py] plugin_wiki problem?

2011-08-10 Thread mart
cube2py and copied the wiki specific files to my app and am still getting the same error. But I have no issues doing this in the cube2py application. Note: previously written pages are fine, this just seems to happen with new pages. Any idea? thanks, Mart :)

[web2py] changes to modules in /modules are not applied unless...

2011-08-08 Thread mart
is not applied unless I bounced the web2py server. If I refresh my browser and open the same file with the web2py file editor, i can see the changes but they are not 'loaded', again, unless I bounce the server. Is this expected? thanks a bunch, Mart :)

[web2py] Re: changes to modules in /modules are not applied unless...

2011-08-08 Thread mart
right... i thought this reload thing was an automatic thing now. Ok, well serves me right for not keeping up!! thanks for the info! Mart :) On Aug 9, 12:06 am, Anthony abasta...@gmail.com wrote: I think that's how imports generally work. With the new custom importer, though, you can have

[web2py] Re: celery integration?

2011-08-05 Thread mart
to help out and see how it integrates. Mart :) On Aug 5, 4:00 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: web2py-celery will be reased in less than one week. I am almost done. On Aug 5, 1:26 pm, pbreit pbreitenb...@gmail.com wrote: Celery 2.3 just came out (http

[web2py] Re: something strange when installing application

2011-08-03 Thread mart
and tasks are being queued and executed properly). I tried using the web2pygrid from slices, and that works well. one thing though, when the build starts, it copies/imports the DB (and generates a model for web2py)... I am probably doing something in there that is causing this. thanks, Mart :) On Aug

[web2py] Re: something strange when installing application

2011-08-03 Thread mart
think maybe the previous)... i can see about updating that and if it makes a difference. Thanks for the tip! Mart :) On Aug 3, 6:03 pm, Christopher Steel chris.st...@gmail.com wrote: If a user on OS X is using the Web2py versioning button the first time it automatically generates a .hgignore

[web2py] something strange when installing application

2011-08-02 Thread mart
(well, copied paste really) tyhe wiki pages, and all works well again... but I would like to get to the bottom of this :) thanks Mart :)

[web2py] Re: something strange when installing application

2011-08-02 Thread mart
good question... i can't see why they wouldn't though... hum... I 'm probably doing something silly again... I'll check it out, thanks, Mart :) On Aug 2, 12:19 pm, pbreit pbreitenb...@gmail.com wrote: Are the pages in the DB?

[web2py] Re: migrating to postgres from sqlite

2011-07-24 Thread mart
I'm getting the same thing (or similar) but with SQLite... i killed anything else that may be connecting to the DB, but now only thing I can do is select. Can't update, delete, truncate, etc,... is there something to programmatically unlock a DB? the only thing curing this is to wipe out the db.

[web2py] Re: migrating to postgres from sqlite

2011-07-24 Thread mart
woops, finger caught the 'enter ' key... anyways that's it then :) thanks, Mart :) On Jul 24, 11:19 pm, mart msenecal...@gmail.com wrote: I'm getting the same thing (or similar) but with SQLite... i killed anything else that may be connecting to the DB, but now only thing I can do is select

[web2py] Re: migrating to postgres from sqlite

2011-07-24 Thread mart
this worked: killed all opened terminals, then forced quit the terminal application and that did it. suddenly unlocked... Mart On Jul 24, 11:21 pm, mart msenecal...@gmail.com wrote: woops, finger caught the 'enter ' key... anyways that's it then :) thanks, Mart :) On Jul 24, 11:19 pm, mart

[web2py] Re: How to use the new cpdb.py introduced in 1.97.1?

2011-07-23 Thread mart
and all works for me. Please try it this way and let me know if you still have issues (i have not tested from sqLite to postgres, but if the connection string is correct and everything to connect to postgres is on the system then all should work well) Mart :) On Jul 23, 4:43 am, Massimo Di Pierro

[web2py] Re: How to use the new cpdb.py introduced in 1.97.1?

2011-07-23 Thread mart
addendum: when it has run successfully, you should see an output similar to this in you shell: dalPath: /Users/mart/aptanaApps/src/blueLite/pyUtils/sql/blueSQL db.tables: ['affectedFile', 'archive', 'auth_cas', 'auth_event', 'auth_group', 'auth_membership', 'auth_permission', 'auth_user

[web2py] Re: How to use the new cpdb.py introduced in 1.97.1?

2011-07-23 Thread mart
do: -table tableName fields=id,name,value file=./myFile.txt dal @ the cmd line is a wonderful thing! :) Mart :) On Jul 23, 5:03 pm, mart msenecal...@gmail.com wrote: addendum: when it has run successfully, you should see an output similar to this in you shell: dalPath: /Users/mart

[web2py] Re: How to use the new cpdb.py introduced in 1.97.1?

2011-07-23 Thread mart
oh... i just remembered, we can also use it from the web2py/scripts dir and use the 'default' paths (i think)... let me get back with this... On Jul 23, 5:15 pm, mart msenecal...@gmail.com wrote: yet another addendum: to me cpdb.py is just a skeleton, it will copy a DB and all that good stuff

[web2py] Re: How to use the new cpdb.py introduced in 1.97.1?

2011-07-23 Thread mart
that. Mart :) On Jul 23, 6:59 pm, mart msenecal...@gmail.com wrote: oh... i just remembered, we can also use it from the web2py/scripts dir and use the 'default' paths (i think)... let me get back with this... On Jul 23, 5:15 pm, mart msenecal...@gmail.com wrote: yet another addendum

[web2py] autofilling (redefining?) a Field value

2011-07-22 Thread mart
}/blueLite/default/ index.html'.format(db.build.buildServer) ) Any ideas how this can work? thanks, Mart :)

[web2py] Re: autofilling (redefining?) a Field value

2011-07-22 Thread mart
)}}{{=build.buildServer}}/a/ li BTW - this is for another adaptation of Massimo's 'cookBook'.. instead of storing recipes by category, it stores and displays build servers and build definitions by build category - still can't get over how many uses there are for that app! :) Thanks again, mart :) On Jul

[web2py] Re: web2py deployement on windows

2011-07-12 Thread mart
Hey, I havent't seen any 'accept' button... do you have SSL enabled with this config? Thanks, Mart :) On Jul 12, 2:18 am, cjrh caleb.hatti...@gmail.com wrote: I think we can fill in defaults for IP and port, and only require a user to hit accept if they agree.  So that should make things even

[web2py] inserting an empty list

2011-07-12 Thread mart
Just curious, if an empty list s returned, can I not still insert it in a Field of type list:string, then later test based on length ? (if len(myList)0: blablabla) thanks, Mart :)

[web2py] Re: web2py deployement on windows

2011-07-12 Thread mart
oh, i see. yes, that makes sense :) Mart :) On Jul 12, 3:30 pm, Caleb Hattingh caleb.hatti...@gmail.com wrote: Sorry, I wasn't being specific. My idea was just to provide defaults with the startup of web2py to reduce a step. There is no literal accept button. Sent from my iPad On 12 Jul

[web2py] Re: inserting an empty list

2011-07-12 Thread mart
yes, If I set the field as Field('myField'), i get 'Field value does not belong to the table' when doing .update(stuff=[]). if I set the field as Field('myField','list:string'), i get the same error... On Jul 12, 1:46 pm, pbreit pbreitenb...@gmail.com wrote: That should work. Did you get an

[web2py] Re: inserting an empty list

2011-07-12 Thread mart
good idea! yes, i will blow away the DB, try again and post the stack trace. this using DAL in script (no web or forms). thanks! :) On Jul 12, 5:15 pm, pbreit pbreitenb...@gmail.com wrote: Hmmm...might need to see the model, controller and database. Are you in development? Can you blow away

[web2py] Re: inserting an empty list

2011-07-12 Thread mart
hum... same error. Here is the relevant stuff and the error is just that ('Field value does not belong to the table') thanks for the help! Mart :) the table... db.define_table('local_history', Field('uuid',length=64,default=uuid.uuid4()), Field('input_name'), Field('input_path

[web2py] Re: web2py deployement on windows

2011-07-12 Thread mart
so many options! this is great too! kind of makes me wonder where my head has been this last year ;) Thanks everyone! I will try the as a service option as well. Mart :) On Jul 12, 8:50 pm, Brian M bmere...@gmail.com wrote: You can run web2py as a windows service toohttp://web2py.com/book

[web2py] Re: inserting an empty list

2011-07-12 Thread mart
/ except bloc and let python spit out what it really thinks. Ok, yes, I'll do that too. Thanks for the input! Mart :) On Jul 12, 8:09 pm, pbreit pbreitenb...@gmail.com wrote: Hmmm..hard to say. Do you have an error trace? Shouldn't matter but I would conside these changes: targets=None

[web2py] Re: inserting an empty list

2011-07-12 Thread mart
=buildSpecName\ ,input_path='{0}'.format(self.dataSource)\ ,value=self.dataSource\ ,. sorry for the trouble! and thanks for the help! Mart :) On Jul 12, 9:35 pm, mart msenecal...@gmail.com wrote: I'll try your suggestions. The db.commits() are necessary because DAL is used outside

[web2py] Re: looping through fields updating

2011-07-11 Thread mart
Hi Denes, Thanks for the great explanation! now, its making sense to me!! I'll apply the changes below Thanks :) Mart :) On Jul 11, 9:34 am, DenesL denes1...@yahoo.ca wrote: Hi Mart, to be able to use the key in the update you have to pass it in a dict. I would do: id

[web2py] Re: looping through fields updating

2011-07-11 Thread mart
Will this day ever end!? ;) Thanks David, will have a look at that too! :) Thanks, Mart :) On Jul 11, 10:50 am, David J. da...@styleflare.com wrote: You may want to look at the _filter_fields Look at web2py slices; this way you can pass a dict and it updates with the relevant fields/ On 7

[web2py] web2py deployement on windows

2011-07-11 Thread mart
with this would be GREATLY appreciated :) thanks, Mart :)

[web2py] Re: web2py deployement on windows

2011-07-11 Thread mart
Really? LOL :) i had no clue! :) (can't stop giggling - so is my daughter and she doesn't even know why (yet) :)) thanks a lot for the help! :) Mart On Jul 11, 7:26 pm, Vasile Ermicioi elff...@gmail.com wrote:    - download web2py for windows    - start web2py    - set ip to  0.0.0.0

[web2py] Re: web2py deployement on windows

2011-07-11 Thread mart
BTW - this is fantastic!! And, admin is blocked! so, no need to worry about folks mocking everything up! :) thanks again! Mart :) On Jul 11, 7:33 pm, mart msenecal...@gmail.com wrote: Really? LOL :) i had no clue! :) (can't stop giggling - so is my daughter and she doesn't even know why (yet

[web2py] looping through fields updating

2011-07-10 Thread mart
(db.local_user.id==id).update(field=localUserDict[key]) db.commit() the exception is of course that the Field field does not belong to the local_user table Thanks, Mart :)

[web2py] Re: New Plugin: plugin_ckeditor

2011-07-08 Thread mart
I think this is awesome and really like the double-click edit feature! I'm sure this will be of great use to many. Good on you! Mart :) On Jul 8, 12:00 pm, Ross Peoples ross.peop...@gmail.com wrote: This will be my second public plugin release. I will put it up on BitBucket soon, but for now

[web2py] Re: Field type

2011-07-06 Thread mart
hi, question: how could I guess the field in something like an interactive shell? i assume, I have to specify db.tableName.filedName? is there something like db.myTable.myField.type? thanks, Mart :) On Jul 4, 12:11 pm, mart msenecal...@gmail.com wrote: ah ha! thank you very much

[web2py] Re: Field type

2011-07-06 Thread mart
isn't very pretty anymore (because it separates the field items with commas :)) so if I can get the script to guess the field type, i can replace the comma with a line break (which would just extend the table field in height) thanks, Mart :) On Jul 6, 12:48 pm, Anthony abasta...@gmail.com wrote

[web2py] Re: Field type

2011-07-06 Thread mart
is string: cumulativeProperties.uuid field is string: cumulativeProperties.name field is string: cumulativeProperties.value field is string: cumulativeProperties.tag field is string: cumulativeProperties.cmdname thanks, Mart :) On Jul 6, 12:59 pm, mart msenecal...@gmail.com wrote: almost :) i'm

[web2py] Re: Field type

2011-07-06 Thread mart
, but sometime I get a list) Mart :) On Jul 6, 2:20 pm, Anthony abasta...@gmail.com wrote: Doesn't db.myTable.myField.type work? Or am I missing something? Anthony On Wednesday, July 6, 2011 12:59:54 PM UTC-4, mart wrote: almost :) i'm looking to guess the field types. for example

[web2py] Field type

2011-07-04 Thread mart
Can dal guess field type even if not explicit? I.e. if I have a Field like Field('myString') but a script ends up inserting something that looks like a list, how can I have a default check? something like:

[web2py] Re: Field type

2011-07-04 Thread mart
woops, sorry so something like: if isinstance(Field,list): blala elif isinstance(Field,str): blala else:blabla thanks, Mart :) On Jul 4, 11:15 am, mart msenecal...@gmail.com wrote: Can dal guess field type even if not explicit? I.e. if I have a Field like Field('myString') but a script

[web2py] Re: Field type

2011-07-04 Thread mart
': .. if isinstance(f.type,str) and f.type=='blob': .. .. if not isinstance(f.type,str): # custom field probably On Jul 4, 10:17 am, mart msenecal...@gmail.com wrote: woops, sorry so something like: if isinstance(Field,list): blala elif isinstance(Field,str): blala

[web2py] Re: new plugin - web2py Form Wizard - PowerFormWizard

2011-06-30 Thread mart
very cool!!! :) On Jun 30, 2:41 am, niknok nikolai...@gmail.com wrote: In the validation example,  I entered a single character in the Bio and was allowed to proceed to the next field despite the db.person.bio.requires = IS_LENGTH(minsize=5, maxsize=200). You  made a note about Client side

[web2py] mySQL DB dumped to xml format -- import using DAL ?

2011-06-21 Thread mart
that web2py could use? I know that DAL can export to xml, but does it also import from xml as well? Perhaps, this can be converted to CSV? As usual, any help is much appreciated, thanks, Mart :)

[web2py] Re: mySQL DB dumped to xml format -- import using DAL ?

2011-06-21 Thread mart
also, I found that they gave me the equivalent data in a .sql file would that be understood by DAL? thanks again, Mart :) On Jun 21, 9:14 pm, mart msenecal...@gmail.com wrote: Hi, let's say someone gave me a dump of a mySQL DB in xml format... something that looks like

[web2py] Re: mySQL DB dumped to xml format -- import using DAL ?

2011-06-21 Thread mart
sounds good, will do that then. Thanks, Mart :) On Jun 21, 9:53 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The easiest way is make a web2py model that matches these fields: db.define_table('bitmap',                 Field('bitmap_id','id'),                 Field('filename

[web2py] Re: mySQL DB dumped to xml format -- import using DAL ?

2011-06-21 Thread mart
last question... Do I really need to bother with PRIMARY KEY , KEY, CONSTRAINT, ENGINE and UNIQUE KEY ? thanks, Mart :) On Jun 21, 9:55 pm, mart msenecal...@gmail.com wrote: sounds good, will do that then. Thanks, Mart :) On Jun 21, 9:53 pm, Massimo Di Pierro massimo.dipie...@gmail.com

[web2py] validators with DAL (stand alone)?

2011-06-21 Thread mart
Hi, can validators such as IS_IN_DB(db,'table.id') be used outside of the web context (dal stand alone) ? Maybe there is a key word or something ? :) thanks again, Mart :)

[web2py] Re: validators with DAL (stand alone)?

2011-06-21 Thread mart
awesome! thanks for the info! i'll use validate_and_insert validate_and_update (i think that should do it), and I look forward to seeing your Rows.validade_and_update_record()! :) thanks, Mart On Jun 21, 11:08 pm, Bruno Rocha rochacbr...@gmail.com wrote: Some more examples: *IS IN SET

[web2py] duplicate of Field ID

2011-06-21 Thread mart
? in this case, i would like to do something db.define_table('compiler', Field('compiler_id','integer',requires='compiler.id'),blabla) suggestions? thanks, Mart :)

[web2py] Re: mySQL DB dumped to xml format -- import using DAL ?

2011-06-21 Thread mart
Excellent! thanks :) On Jun 21, 11:30 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: no. On Jun 21, 9:00 pm, mart msenecal...@gmail.com wrote: last question... Do I really need to bother with PRIMARY KEY , KEY, CONSTRAINT, ENGINE and UNIQUE KEY ? thanks, Mart

[web2py] Re: Python and Web2py dictionary behavior

2011-06-14 Thread mart
...') blablabla On Jun 13, 11:18 pm, mart msenecal...@gmail.com wrote: well, well,... look at this!  this is new to me! :) so, you can dump the 3 attached files somewhere and run dfoTest.py and check the output (a few comments in the script and some in the _dfo module). I through in an xml file

[web2py] Re: Python and Web2py dictionary behavior

2011-06-13 Thread mart
an attachement to these posts. But will gladly email if anyone is interested. Mart import cPickle class blueDict(dict): def __init__(self,data=None): if data: dict.__init__(self, data) else: dict.__init__(self) dic=self.__dict__ dic['__ver__

[web2py] Re: Python and Web2py dictionary behavior

2011-06-13 Thread mart
be glad to... and I will freely admit to being dense :), but... I don't know how to attach it here ;) Is there a trick? or if you send me your email, I'll send with a usage sample. Mart :) On Jun 13, 9:48 pm, pbreit pbreitenb...@gmail.com wrote: I'd be curious to see your XML processing code

[web2py] Re: Python and Web2py dictionary behavior

2011-06-13 Thread mart
has lots of web2py stuff in it that plays nice with dal.py - which is very useful for me (i think I use DAL everywhere now ;) ) anyways, let me know if anything unclear. Mart :) from xml.etree import ElementTree from pprint import pprint def main(): dictObj = oXml2oDict('./properties

  1   2   3   4   5   >