[web2py] Re: Web2Py and MS Access

2012-11-16 Thread Simon Carr
Which SQL Standard? On Friday, 16 November 2012 02:39:24 UTC, Tim Richardson wrote: Your experience with MS Access will not be good I think. It doesn't even pretend to support SQL standards as far as I remember, and you'll have a very difficult time getting support. The advice to

Re: [web2py] Re: Web2Py and MS Access

2012-11-16 Thread Vasile Ermicioi
man do a favor for yourself and don't use ms access database, move to sqlite which is built in python :) why? http://database-management-systems.findthebest.com/saved_compare/Access-vs-SQLite http://sqlite.phxsoftware.com/forums/p/666/3106.aspx and you will find more reasons on google how? use

[web2py] Re: Web2Py and MS Access

2012-11-16 Thread Tim Richardson
On Friday, 16 November 2012 20:32:23 UTC+11, Simon Carr wrote: Which SQL Standard? :) But seriously, the SQL you develop to get anything working with Access will be unusually idiosyncratic. I have bad memories ... --

Re: [web2py] Multilanguage website

2012-11-16 Thread David Sorrentino
Hi Niphlod, Thanks for your example. It's crystal clear. ;) I got another doubt about multi-languages: on the online book I read that in order to tell web2py which language is the default one, I have to use: T.set_current_languages('it') Now I am wondering if I need to use it in the controller

[web2py] Re: GAE - SQL cloud connection

2012-11-16 Thread rif
I created today a sql cloud database. And I got the same error. I changed to path VARCHAR(255) and now it works. Anybody else having the same problem? -rif marți, 7 august 2012, 18:27:13 UTC+3, Massimo Di Pierro a scris: Why does 512 result in Specified key was too long; max key length is

[web2py] Re: videos not working in auth.wiki page

2012-11-16 Thread Massimo Di Pierro
No. You do not need it. You just cut and paste the link to the youtube video page and it will embed the video automatically. On Thursday, 15 November 2012 22:32:17 UTC-6, Andrew W wrote: Does the plugin_wiki syntax work in auth.wiki ? (I'll try it tonight). From the book (plugins

[web2py] Re: GAE - SQL cloud connection

2012-11-16 Thread Massimo Di Pierro
Please open a ticket and we will fix this asap. On Friday, 16 November 2012 04:49:35 UTC-6, rif wrote: I created today a sql cloud database. And I got the same error. I changed to path VARCHAR(255) and now it works. Anybody else having the same problem? -rif marți, 7 august 2012,

[web2py] Re: GAE - SQL cloud connection

2012-11-16 Thread rif
Done (http://code.google.com/p/web2py/issues/detail?id=1172) Are the migrations issues to GoogleSQL still present? -rif vineri, 16 noiembrie 2012, 12:57:14 UTC+2, Massimo Di Pierro a scris: Please open a ticket and we will fix this asap. On Friday, 16 November 2012 04:49:35 UTC-6, rif

Re: [web2py] Multilanguage website

2012-11-16 Thread David Sorrentino
Very last doubt, I promise! :P Let us assume that I am visiting the page at this url: /en/portfolio and I want to change to /it/portfolio, how can I set URL in order to do that? If I set it like this: URL('it') I will obtain: /en/it which is an invalid function. Cheers, David On 16

[web2py] Hash-flooding DoS attack in Ruby

2012-11-16 Thread Ralo Tannahill
Hash-flooding DoS attack reported for the Hash function (Ruby) http://www.ruby-lang.org/en/news/2012/11/09/ruby19-hashdos-cve-2012-5371 Just for information, not a Dos for web2py. In web2py can we limit the size of the parsed data? just in case there was a DoS like this one Kind regards --

[web2py] Re: auth.wiki( extra=dict() )

2012-11-16 Thread villas
Hi Massimo, I've just been checking it. I think you need to change this... Wiki __init__() This line: self.extra = self.extra or {} should be: self.extra = extra or {} --

Re: [web2py] GAE - SQL cloud connection

2012-11-16 Thread Massimo DiPierro
On Nov 16, 2012, at 5:17 AM, rif wrote: Done (http://code.google.com/p/web2py/issues/detail?id=1172) Are the migrations issues to GoogleSQL still present? I am not aware of any issue. Can you point me to some something about this? -rif vineri, 16 noiembrie 2012, 12:57:14 UTC+2,

Re: [web2py] GAE - SQL cloud connection

2012-11-16 Thread rif
I was referring to http://web2py.com/books/default/chapter/29/06#Gotchas vineri, 16 noiembrie 2012, 15:04:47 UTC+2, Massimo Di Pierro a scris: On Nov 16, 2012, at 5:17 AM, rif wrote: Done (http://code.google.com/p/web2py/issues/detail?id=1172) Are the migrations issues to GoogleSQL still

[web2py] Width not working when resizing an image to use it as a submit button

2012-11-16 Thread Francisco Barretto
Hi there! I'm having some troubles using an image as a substitute for a submit button... I'm generating the form in the controller and using a local image as follows: INPUT(_type=image, _value=Editar, _width=16, _height=16, _alt= Editar, _src=/+request.application+/static/images/edit.png),

[web2py] Get request.var by it's name

2012-11-16 Thread Francisco Barretto
Hi there! How do I get a var value which is being passed by post into a controller by its name? I mean, I don't want to get the values using request.args(0), because I'll be stuck with the index. I'd rather do something like request.args['dnsClass'], for example. Any hints?

[web2py] Re: Get request.var by it's name

2012-11-16 Thread Niphlod
request.vars is a dict. request.vars.keys() is a list of all the variables request.vars['dnsClass'] is what you're searching for. PS: your address bar will be app/controller/function?dnsClass=INownername= On Friday, November 16, 2012 2:46:14 PM UTC+1, Francisco Barretto wrote: Hi there!

Re: [web2py] Multilanguage website

2012-11-16 Thread Niphlod
URL('it') is go to the it function in the same controller I'm in. haven't played with that, but I guess web2py expects something like /a/lang/c/f so, by some means of request.something (function,controller,args,etc) you should be able to. On Friday, November 16, 2012 12:23:52 PM UTC+1,

[web2py] error export represet

2012-11-16 Thread www.diazluis.com
{{ import cStringIO stream=cStringIO.StringIO() estudiante_arancel_rows.export_to_csv_file(ofile=stream, represent=True) response.headers['Content-Type']='application/vnd.ms-excel' response.headers['Content-Disposition'] = attachment; filename=%s % 'data_sga.csv'

[web2py] web2py 2.2.1 routes not redirecting

2012-11-16 Thread Vasile Ermicioi
hi, instead of showing 'app' application it shows it show init app but if I go http://mysite.com/app it works routes.py #!/usr/bin/python # -*- coding: utf-8 -*- routes_in = ( ('(.*):https?://(.*)mysite\.com:(.*)/', '/app/'), ) def __routes_doctest(): pass if __name__ == '__main__':

[web2py] manual file upload fails when storing file in database - field is NULL

2012-11-16 Thread Cliff Kachinske
The title describes the problem. Any suggestions as to what I might do? Would it be simpler if I just uploaded to a directory? I'm archiving for auditability, so I suppose there would still be a way to get at earlier versions of uploaded files. Here is the model:

[web2py] Re: Width not working when resizing an image to use it as a submit button

2012-11-16 Thread villas
Note that CSS usually overrides html attributes. Try setting the width with _style='width:16px' instead. (Only 16px?) You can use Firefox with plugin Firebug to see what CSS rules are being applied. Regards, D On Friday, November 16, 2012 1:18:39 PM UTC, Francisco Barretto wrote: Hi

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-16 Thread Rob_McC
Thanks ! I spend some more time wrestling with this, and expanding my knowledge of this feature of web2py, which I enjoy doing. *GOOD NEWS*, I finally got it to work, on a simple web2py app. - just by adding 2 lines in the right place. (copy of working code below) Now, I'm not sure if a bug

Re: [web2py] Re: Web2Py and MS Access

2012-11-16 Thread Simon Carr
I will take a look at this. Thanks On Friday, 16 November 2012 09:53:13 UTC, Vasile Ermicioi wrote: man do a favor for yourself and don't use ms access database, move to sqlite which is built in python :) why?

[web2py] Re: Web2Py and MS Access

2012-11-16 Thread Simon Carr
Glad you saw you the humorous side of it, I wasn't sure after I replied if it would be taken the wrong way. By the way I tried to create an adapter today for Access from the MSSQLAdapter library. I managed to get Web2Py creating tables in Access but only to the point where it had to create

[web2py] Unsigned int in DAL

2012-11-16 Thread Joseph.Piron
Hi all! I have quite a problematic issue, I would like to know how to define a Field as unsigned in the DAL ? I tested: Field('triggerValue', 'unsigned integer', requires=IS_NOT_EMPTY(),notnull =True), and Field('triggerValue', 'integer', unsigned=True, requires=IS_NOT_EMPTY(),notnull

Re: [web2py] Unsigned int in DAL

2012-11-16 Thread Richard Vézina
Which backend do you use? I think that this feature is database specific... Richard On Fri, Nov 16, 2012 at 11:12 AM, Joseph.Piron joseph.pi...@gmail.comwrote: Hi all! I have quite a problematic issue, I would like to know how to define a Field as unsigned in the DAL ? I tested:

Re: [web2py] Unsigned int in DAL

2012-11-16 Thread Marin Pranjić
You can use integer for development. In production, you can alter the database with raw sql to change the field. DAL will still think it's an integer. If needed, you can add validators to make sure you're not working with negative numbers. On Fri, Nov 16, 2012 at 5:15 PM, Richard Vézina

[web2py] Re: Manually setting email for auth registration form

2012-11-16 Thread pbreit
The problem might be in the code you stripped out. What does the code around line 138 look like? It appears you are referencing items somewhere where it does not exist. What does the code look like that processes the form? Do you have a redirect after For the email field, you might need to

[web2py] Re: Migrating with postgres

2012-11-16 Thread pbreit
I think you might want to try: 1. copy all of the files in databases somewhere safe 2. delete all the files in databases 3. in the DB connection string, include (..., migrate=True, fake_migrate_all=True) 4. Access /appadmin to trigger a migration 5. Revert DB connection string to (...,

Re: [web2py] Unsigned int in DAL

2012-11-16 Thread Joseph Piron
I am working with mysql, there's no way to do this without an alter table ? (Which would be executed at each request moreover) On Nov 16, 2012 5:25 PM, Marin Pranjić marin.pran...@gmail.com wrote: You can use integer for development. In production, you can alter the database with raw sql to

[web2py] Re: Unsigned int in DAL

2012-11-16 Thread villas
I don't think that DAL has this field type. You can use a validator to make sure the integer is positive. See IS_INT_IN_RANGE and IS_EXPR in the online book. On Friday, November 16, 2012 4:12:45 PM UTC, Joseph.Piron wrote: Hi all! I have quite a problematic issue, I would like to know

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-16 Thread Anthony
How does someone arrive at your login page? Is it via the Login link generated by the auth.navbar()? Anthony On Friday, November 16, 2012 10:42:48 AM UTC-5, Rob_McC wrote: Thanks ! I spend some more time wrestling with this, and expanding my knowledge of this feature of web2py, which I

[web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread vivek
I have a SQLFORM.grid which I load using LOAD component. Now i want to perform few onscreen auto calculations when I add data into this table via sqlform.grid. So i have setup few jquery functions to do it. It used to run smoothly before when I didnt have the SQLFORM.grid run via LOAD. But

[web2py] Re: Empty db stats and db tables in response.toolbar() despite database connection - MySQL

2012-11-16 Thread Cédric Mayer
I confirm the bug using 2.2.1 (I am not using trunk...) It is because in gluon/globals THREAD_LOCAL.instances do not exist and the replacement THREAD_LOCAL.db_instances has a different architecture. To correct (I hope it's in the trunk already): dbstats = [TABLE(*[TR(PRE(row[0]), '%.2fms' %

Re: [web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Richard Vézina
I have similar problem, trying to set some bootstrap style... I think that how LOAD works it remove everything but html... I will investigate about that soon. Interested in any input since then. Richard On Fri, Nov 16, 2012 at 1:05 PM, vivek vi...@digambernath.org wrote: I have a

Re: [web2py] Multilanguage website

2012-11-16 Thread David Sorrentino
Niphlod, I understand that web2py expects something like /a/lang/c/f or /lang/c/f, but playing with request.something I didn't manage to obtain that. :) Any tips? Thanks for your help. Have a good night. David On 16 November 2012 15:25, Niphlod niph...@gmail.com wrote: URL('it') is go to the

[web2py] Re: Jquery function not triggered for fields in LOAD component

2012-11-16 Thread LightDot
To execute JavaScript as the component loads, use response.js in the controller of the component you're loading. Search for response.js in the book or on this forum to get started... Regards, Ales On Friday, November 16, 2012 7:05:48 PM UTC+1, vivek wrote: I have a SQLFORM.grid which I

[web2py] How do I include text from a file in static in my email templates?

2012-11-16 Thread Jason Brower
I want to include the text from static in my email templates. I currently have this, but it doesn't work: style type=text/css {{=LOAD(url=URL('static', 'css/web2py.css', scheme='http'),ajax=False)}} {{=LOAD(url=URL('static', 'css/style.css', scheme='http'),ajax=False)}} /style But this doesn't

Re: [web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Niphlod
load is just a convenience wrapper to load a fragment and to trap form submissions. Something in your js is not firing, but you need to show us the code to pinpoint the cause --

[web2py] Re: Empty db stats and db tables in response.toolbar() despite database connection - MySQL

2012-11-16 Thread Niphlod
yet in trunk! On Friday, November 16, 2012 7:24:44 PM UTC+1, Cédric Mayer wrote: I confirm the bug using 2.2.1 (I am not using trunk...) It is because in gluon/globals THREAD_LOCAL.instances do not exist and the replacement THREAD_LOCAL.db_instances has a different architecture. To

Re: [web2py] Re: Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Richard Vézina
Haha! Thanks LightDot Richard On Fri, Nov 16, 2012 at 2:44 PM, LightDot light...@gmail.com wrote: To execute JavaScript as the component loads, use response.js in the controller of the component you're loading. Search for response.js in the book or on this forum to get started... Regards,

Re: [web2py] Unsigned int in DAL

2012-11-16 Thread Niphlod
On Friday, November 16, 2012 5:56:18 PM UTC+1, Joseph.Piron wrote: I am working with mysql, there's no way to do this without an alter table ? (Which would be executed at each request moreover) PS: once the table is altered externally there's no need to perform anything on web2py. it's

[web2py] Re: Unsigned int in DAL

2012-11-16 Thread Joseph.Piron
No I can't, here I have to stock and let the user enter 2**31 and not 2**31-1 As everything else is possible, shouldn't it be possible to add a aprameter to the field constructor to set unsigned ? That would be really handy in situation such as mine where I have to deploy the solution on many

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Jim S
Richard - I've been trying to get this working but am not having any luck. I have the lazy_options_widget working with the first field being a suggest_widget, but am trying to implement with your suggestion above using a SELECT element as the first field, but it isn't working. I'm using this

Re: [web2py] Multilanguage website

2012-11-16 Thread Niphlod
ok, I played with it and understood an underlying design decision to let the current request.uri_language to propagate to all URL() generated links. In fact, parameter based router was thought to let different versions of the same site to behave in a consistent way (i.e., if you accessed

[web2py] Re: Unsigned int in DAL

2012-11-16 Thread Niphlod
On Friday, November 16, 2012 9:23:33 PM UTC+1, Joseph.Piron wrote: No I can't, here I have to stock and let the user enter 2**31 and not 2**31-1 As everything else is possible, shouldn't it be possible to add a aprameter to the field constructor to set unsigned ? That would be really

Re: [web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Richard Vézina
Hmm... I pass by reponse.js many little script that works just fine... But it seems that I have to pass bootstrap.js to in order to have the all the bootstrap feature to work. Is ti normal? Richard On Fri, Nov 16, 2012 at 2:53 PM, Niphlod niph...@gmail.com wrote: load is just a convenience

[web2py] Re: Web2Py and MS Access

2012-11-16 Thread Tim Richardson
Humour me back ... download SQL Server express edition and the accompanying SQL Server Management Studio (Express edition) and have a look at it. It runs well on Windows 7 XP desktops. People could also recommend postgres, but for getting up and running quickly, and for its very friendly

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Richard Vézina
Hi Jim, I am not sure I follow... What you have done so far? On Fri, Nov 16, 2012 at 3:31 PM, Jim S j...@qlf.com wrote: Richard - I've been trying to get this working but am not having any luck. I have the lazy_options_widget working with the first field being a suggest_widget, but am

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Richard Vézina
It may be related to smartgrid... Have you try with a straight sqlform?? Richard On Fri, Nov 16, 2012 at 3:31 PM, Jim S j...@qlf.com wrote: Richard - I've been trying to get this working but am not having any luck. I have the lazy_options_widget working with the first field being a

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Jim S
Well, I can get it to work with smartgrid if I use a suggest_widget for the first field. But, I'm trying to make my second SELECT element reload its options based on the option selected in the first SELECT element. I was trying to follow the JS that you posted earlier, but I can't get it to

Re: [web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Niphlod
if you have the default layout bootstrap.js is put at the end of the page. trying to call something relying on that on a fragment that is put before the last piece of the page is loaded will obviously not run. and again, LOAD() (when not called with ajax=False) is just a nice shortcut to $.ajax

[web2py] Re: auth.wiki( extra=dict() )

2012-11-16 Thread Andrew W
Yes, it's broken: AttributeError: 'Wiki' object has no attribute 'extra' I made the change below and it works. On Saturday, November 17, 2012 12:54:14 AM UTC+13, villas wrote: Hi Massimo, I've just been checking it. I think you need to change this... Wiki __init__() This line:

[web2py] Re: videos not working in auth.wiki page

2012-11-16 Thread Andrew W
Thanks. That's what I did. On Friday, November 16, 2012 11:56:49 PM UTC+13, Massimo Di Pierro wrote: No. You do not need it. You just cut and paste the link to the youtube video page and it will embed the video automatically. On Thursday, 15 November 2012 22:32:17 UTC-6, Andrew W wrote:

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Richard Vézina
Jim, You can put the jQuery directly in html create/update form like this : script $(select[name=FIRSTFIELDNAME]).change(function() { var val = $(this).children(:selected).attr(value); $(this).trigger($(this).attr(id) + __selected, [val]); }); /script To make sure you selector are good

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Richard Vézina
I have to go... Sorry... It surely a selector that not catch what it suppose to... My form use formestyle=divs that maybe affect somehow... Richard On Fri, Nov 16, 2012 at 4:40 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Jim, You can put the jQuery directly in html create/update

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Jim S
Thanks Richard, didn't think of changing the background to help me diagnose. Will work on it more this afternoon but pick it up again on Monday. Have a good weekend! -Jim On Friday, November 16, 2012 3:44:16 PM UTC-6, Richard wrote: I have to go... Sorry... It surely a selector that not

Re: [web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Richard Vézina
Will look at that. Thanks Niphlod. It is bizzard all my script work, but when I add this one they all stop working, I thougth that it was because of web2py.js or bootstrap.js or orther .js, but I don't think so now. # Works fine response.js = 'jQuery(document).ready(function(){

Re: [web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Richard Vézina
The last problematic script use to work if I use it with normal form (not a form in a component). Richard On Fri, Nov 16, 2012 at 4:53 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Will look at that. Thanks Niphlod. It is bizzard all my script work, but when I add this one they

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Richard Vézina
You too! Bye! Richard On Fri, Nov 16, 2012 at 4:47 PM, Jim S j...@qlf.com wrote: Thanks Richard, didn't think of changing the background to help me diagnose. Will work on it more this afternoon but pick it up again on Monday. Have a good weekend! -Jim On Friday, November 16, 2012

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Jim S
FYI - I got it working by putting the JS in layout.html within my $(document).ready(function() code. But, now it is working ok for adding a new record, but doesn't display the value in the second SELECT on edit. That one doesn't work with suggest_widget on the first field either. Even if

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-11-16 Thread Jim S
FWIW, I just found why it didn't work earlier. I was editing the wrong .html file. Meat Head. Blame it on Friday afternoon... -Jim On Friday, November 16, 2012 4:06:33 PM UTC-6, Jim S wrote: FYI - I got it working by putting the JS in layout.html within my $(document).ready(function()

[web2py] Re: Hash-flooding DoS attack in Ruby

2012-11-16 Thread Massimo Di Pierro
This was discussed on this list and it is my understanding it has been fixed at the Pyhton level: http://www.h-online.com/security/news/item/Python-updates-for-hash-collision-DoS-problems-Update-1519585.html On Friday, 16 November 2012 05:34:26 UTC-6, Ralo Tannahill wrote: Hash-flooding DoS

Re: [web2py] Jquery function not triggered for fields in LOAD component

2012-11-16 Thread Niphlod
have you inspected where it goes on error ? My bet would be on the calendar setup ... seems that you're trying to bind a click on an element to trigger the parent to show the calendar. But the calendar is supposedly yet present on the input field. If so, why don't you just use live ? e.g.

[web2py] Re: error export represet

2012-11-16 Thread Massimo Di Pierro
some where you have a Field(...,represent=something) and something takes two arguments, not one. Can you show us the model? On Friday, 16 November 2012 08:51:32 UTC-6, www.diazluis.com wrote: {{ import cStringIO stream=cStringIO.StringIO()

[web2py] Re: manual file upload fails when storing file in database - field is NULL

2012-11-16 Thread Massimo Di Pierro
Yes: att_id = db2.attachments.insert( attachment = db2.attachments.attachment.store(...), filename = fname, Description = r.attachments.attachment_brief_description, ) needs att_id = db2.attachments.insert(

[web2py] Re: How do I include text from a file in static in my email templates?

2012-11-16 Thread Massimo Di Pierro
style type=text/css {{=open(os.path.join(request.folder,'static','css/web2py.css')).read()}} {{=open(os.path.join(request.folder,'static','css/style.css')).read()}} /style On Friday, 16 November 2012 13:47:10 UTC-6, encompass wrote: I want to include the text from static in my email

[web2py] Re: Web2Py and MS Access

2012-11-16 Thread Simon Carr
There is no way I will get away with that at work. However Oracle is available so I might see if I can get a business case together for them to set me up with a schema. Again many thanks. On Friday, 16 November 2012 21:08:49 UTC, Tim Richardson wrote: Humour me back ... download SQL Server

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-16 Thread peter
I have already issued a bug report. for auth.navbar(referrer_actions=None) Peter On Friday, 16 November 2012 18:03:12 UTC, Anthony wrote: How does someone arrive at your login page? Is it via the Login link generated by the auth.navbar()? Anthony On Friday, November 16, 2012 10:42:48 AM

[web2py] Session files not always created

2012-11-16 Thread villas
Using latest trunk with Apache/Linux. I'm having log in problems, especially with IE 9. I've noticed that in the browser I get the cookie set: NAME session_id_myapp VALUE 75.141.38.104-8a5232dc-03d5-4312-bc65-2157590a973b DOMAIN mydomain.com PATH / EXPIRES At the end of the Session So

Re: [web2py] Re: Migrating with postgres

2012-11-16 Thread Richard Baron Penman
That is the process I first tried, based on info in the web2py book. The problem for this was when web2py was regenerating the tables it raised an error that auth_user already exists. On Sat, Nov 17, 2012 at 3:55 AM, pbreit pbreitenb...@gmail.com wrote: I think you might want to try: 1. copy

[web2py] Re: Session files not always created

2012-11-16 Thread Adi
hmm... i got the latest trunk, and also started having a problem with session... but still investigating. On Friday, November 16, 2012 5:50:02 PM UTC-5, villas wrote: Using latest trunk with Apache/Linux. I'm having log in problems, especially with IE 9. I've noticed that in the browser

[web2py] Data does not make it to the db table when NyroModal is used once sqlform submitted !! please help !

2012-11-16 Thread Don_X
Hello everyone .. it has been a while ! ... I am back .. alive .. and kicking at it again... OK ! .. I have a problem with data that does not make it to the table when the related form is shown to the user through a Modal ( in this case it is the NyroModal that I chose to use for this

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-16 Thread Rob_McC
Hey Anthony: Q How does someone arrive at your login page? Is it via the Login link generated by the auth.navbar()? A: I have tested a few ways... here are my findings *Method 1* - From home page, http://127.0.0.1:8000/AuthRedirect/default/user/login?_next=/AuthRedirect/default/index

[web2py] Re: Session files not always created

2012-11-16 Thread Adi
tested the same code in Version 2.2.1 (2012-10-21 16:57:04) stable, and session works as expected, but not in trunk. simplified version of what i'm doing: def a(): products=db(db.products1).select() session.category_products_keys = products.as_dict().keys() print

[web2py] Re: Session files not always created

2012-11-16 Thread Adi
correction... rearranged the code a bit, and all works as expected on my side... On Friday, November 16, 2012 8:43:24 PM UTC-5, Adi wrote: tested the same code in Version 2.2.1 (2012-10-21 16:57:04) stable, and session works as expected, but not in trunk. simplified version of what i'm

Re: [web2py] Re: wxpython app using web2py username and password

2012-11-16 Thread dlypka
I intend to create some sample code fragments. I will try to post something by Monday. On Thursday, November 15, 2012 9:16:09 PM UTC-6, Jim S wrote: I would be interested in learning more. do you have any samples you could share? On Nov 15, 2012 8:52 PM, dlypka dly...@gmail.com javascript:

[web2py] Re: How do I include text from a file in static in my email templates?

2012-11-16 Thread encompass
Never thought about doing it that way. Better to use the python way in this case I suppose. :) BR, Jason On Saturday, November 17, 2012 12:22:52 AM UTC+2, Massimo Di Pierro wrote: style type=text/css {{=open(os.path.join(request.folder,'static','css/web2py.css')).read()}}

[web2py] How do I handle more than 32768 characters in the database?

2012-11-16 Thread Jason Brower
I was including the css I use in my emails and it's telling me it is more than 32768 Chars. 'message':'enter from 0 to 32768 characters' Any way I can get around this issue? I suppose I could try to shorten my css but I wish there was a better way. (Compressing the CSS would be cool too.)