[web2py] Re: Latest Trunk - problem with auth(session) and login using 'remember me'

2013-08-22 Thread David Marko
Thursday, 22 August 2013 02:16:20 UTC-5, David Marko wrote: >> >> I know there are some changes in session internals in trunk, so just >> reporting an issue I observed. When I login using 'Remember me' checked, >> I'm getting this error below. Without &#x

[web2py] Latest Trunk - problem with auth(session) and login using 'remember me'

2013-08-22 Thread David Marko
I know there are some changes in session internals in trunk, so just reporting an issue I observed. When I login using 'Remember me' checked, I'm getting this error below. Without 'remember me' its working just fine. I tried to remove all session files but still the same consistent behaviour ..

[web2py] Re: track_changes for modules stops working after some time - some observation

2013-08-04 Thread David Marko
I have this problem for years. Working on Windows 7/8 , python 2.7.5 and latest web2py from trunk. The same behaviour observed when running rocket or mod_wsgi (under Apache). I'm always putting track_changes into model. Details of the behaviour are described in my initial post in this discussi

[web2py] more buttons on the SQLFORM, how to add them into templates using form custom layout ...?

2013-08-03 Thread David Marko
I would like to add more buttons to SQLFORM using the syntax below. How can I address these buttons on template when I render content manualy? For common submit filed I'm using {{=form.custom.submit}} ... how to address these additional buttons? form.add_button('Back', URL('other_page')) or b

[web2py] Re: viewScope variables implementation - your comments and ideas are welcome ...

2013-08-02 Thread David Marko
the session? > > Anthony > > On Friday, August 2, 2013 3:10:55 PM UTC-4, David Marko wrote: >> >> I'm trying to implement the viewScope variables for web2py controller >> methods. Idea behind is to mimic a behaviour of JAVA frameworks like JSF or >> Spring that us

[web2py] viewScope variables implementation - your comments and ideas are welcome ...

2013-08-02 Thread David Marko
I'm trying to implement the viewScope variables for web2py controller methods. Idea behind is to mimic a behaviour of JAVA frameworks like JSF or Spring that use the concept of viewScope variables. Such variables live during the all posts to same controller action / to the same form. This is ve

[web2py] Re: track_changes for modules stops working after some time - some observation

2013-08-02 Thread David Marko
Its in model ... -- --- 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 https://groups.google.com/gr

[web2py] track_changes for modules stops working after some time - some observation

2013-08-02 Thread David Marko
It has been reported a few times by different users. track_changes for modules stops working after several reloads of page in browser. I can see typical scenario ... I'm working with module and changes are detected correctly . After 6-7 changes and reloads cycle in browser during the coding pro

[web2py] {{include tmpNameVar }} with template name as a variable problem

2013-08-01 Thread David Marko
I'm trying to use include in 'for' statement importing left navigation snippets from separate folders for particular modules. Code is very simple as below. But it fails on line with include saying that 'm' variable doesnt exist. I tried this and that and found out that include can see variables

[web2py] Using grid on db.auth_user table switches me back with 'not authorized' flash message ...

2013-07-31 Thread David Marko
I try to use SQLFORM.grid(db.auth_user) in my controller action. But this line simply redirects me back do default action with 'not authorized' flash message. Grid with my custom tables are working fine. Is there any restriction on auth tables? -- --- You received this message because you ar

[web2py] Form errors list ... Is there a way how to get field labels?

2013-07-30 Thread David Marko
I would like to disable inline form error messages and put these as a list above the form. Common errors list comtains the field name, which is rather technical term. Is there a way how to get a label name for each field name from form object? -- --- You received this message because you ar

[web2py] Re: auth.user_groups are cached? Can't see changes beeing done in admin UI until user logout/login again

2013-07-30 Thread David Marko
But update_groups do update only for just login user so callbacks should do the work for every user, and this probably cant be done ... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emai

[web2py] auth.user_groups are cached? Can't see changes beeing done in admin UI until user logout/login again

2013-07-30 Thread David Marko
auth.user_groups are cached? Cant see changes beeing done in admin UI until user logout/login again . Any idea how to make this information to be fresh? I mean when I remove user from group, it should be working immediately ... -- --- You received this message because you are subscribed to t

[web2py] Re: Bug in SQLFORM.grid - interference between two grids openned in two browser tabs ...

2013-07-26 Thread David Marko
it ? > > On Friday, July 26, 2013 9:11:38 PM UTC+2, David Marko wrote: >> >> I accidentlly found a strange thing / bug when I open two browser tabs of >> the same app with two different pages having different grids. >> >> Scenario: >> a) open page01 with gri

[web2py] Bug in SQLFORM.grid - interference between two grids openned in two browser tabs ...

2013-07-26 Thread David Marko
I accidentlly found a strange thing / bug when I open two browser tabs of the same app with two different pages having different grids. Scenario: a) open page01 with grid (first browser tab) b) open page02 with another grid (another browser tab) c) go back to first tab and refresh/reload the pa

[web2py] How to show column from 1:N relation in SQLFORM.grid for child table ?

2013-07-25 Thread David Marko
I have a simple 1:N relation (I think its very common scenatio) as you can see below. Now how can I create a query form SQLFORM.grid to show 'customer_person' table but view company_name in 'company' column instead of ID? I tried to put this query to grid 'db_companies.id == db_persons.company

[web2py] How can I protect the entire controller to be available only for logged in users?

2013-07-24 Thread David Marko
How can I protect the entire controller to be available only for logged in users? Something like @auth.requires_login() but for the entire controller instead of each method ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe

[web2py] What is the import order for model files when using subfolders based on controller names ?

2013-07-23 Thread David Marko
I'm using model subfolders for specific controllers based on docs here "By default, this is set automatically to load /a/models/*.py, /a/models/c/*.py, and /a/models/c/f/*.py files when /a/c/f is requested." What is the import order for this? -- --- You received this message because you are

[web2py] Re: Problem with {{include "some_page.html"}} - its adding some empty line at the top of parsed template

2013-07-23 Thread David Marko
I just found it was IDE issue. I'm using PyScripter and when I oppened the HTML templates in another editor and resaved it simply disapeared ... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop recei

[web2py] Problem with {{include "some_page.html"}} - its adding some empty line at the top of parsed template

2013-07-23 Thread David Marko
I have a problem with {{include "some_page.html"}} on templates. Its adding some empty line at the top of parsed template. I have some html theme that requires precise html and I found out that when I use {{include}} its adding some strange char(s) at the top of parsed template. I simply try

[web2py] Re: can't compare datetime.date to Field

2013-07-17 Thread David Marko
I think this is because '>=' are methods on field object ... Dne středa, 17. července 2013 4:57:02 UTC+2 lucas napsal(a): > > omg, that is amazing. strange syntax. why not interchangeable? lucas >>> >> -- --- You received this message because you are subscribed to the Google Groups "web2py

[web2py] Re: ChromeLogger for web2py

2013-07-16 Thread David Marko
Very nice :-) -- --- 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 https://groups.google.com/groups

[web2py] Anyone having experience with web2py and ChromeLogger?

2013-07-16 Thread David Marko
Anyone having experience with web2py and ChromeLogger? http://craig.is/writing/chrome-logger https://github.com/ccampbell/chromelogger-python -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receivin

[web2py] Re: web2py roadmap

2013-07-14 Thread David Marko
Is there a way how to add something to wishlist? Dne neděle, 14. července 2013 22:30:05 UTC+2 Niphlod napsal(a): > > web2py's developers work often "behind the curtain" and users are not able > to see what they're working on. Historically we tracked down > feature-requests and todo-lists on goo

[web2py] Re: this talk...

2013-07-14 Thread David Marko
Hi Massimo, can you elaborate more on how it is relevant to this community? Do you have some ideas that come from this presentation? Dne neděle, 14. července 2013 18:03:06 UTC+2 Massimo Di Pierro napsal(a): > > https://vimeo.com/2723800 > > I think this talk is really relevant to our community, a

[web2py] Re: New Auth and general database management functionality in appadmin

2013-07-09 Thread David Marko
Just got it to work, I copied only appadmin.py controller, but also the appadmin.html and current web2py.js is required ... -- --- 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,

[web2py] Re: New Auth and general database management functionality in appadmin

2013-07-08 Thread David Marko
Hi Anthony, can you help me to make it alive in my app, please? I'm using the latest trunk web2py version. I did necessary setup as described above but when I enter the following URL: http://localhost/test_app/appadmin/manage/auth I'm just getting this in browser 'invalid function (appadmin/man

[web2py] Anyone here as former PHP developer? Help me with 'pro-web2py' arguments please ...

2013-07-06 Thread David Marko
The talks raised in our company about the shifting to PHP world as a more widespread ... and even some people has PHP experience already here. Symfony2 and Laravel PHP frameworks are in consideration. Is there anyone that switched from some PHP web framework to web2py? Can you share some experi

[web2py] Why is compiled application slower than the one without compilation?

2013-06-28 Thread David Marko
I just tested my web2py installation using Apache Benchmark and found strange thing. When I benchmarked common examples app, that is available in web2py core (this url: /examples/simple_examples/hello5 ) I found that compiled app gives me around 100 req/sec but uncompiled 155 req/sec which is

[web2py] Article: How fast can we make interpreted Python?

2013-06-26 Thread David Marko
http://www.phi-node.com/2013/06/how-fast-can-we-make-interpreted-python.html https://github.com/rjpower/falcon -- --- 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

[web2py] Re: Anyone got working python-dateutil in web2py app?

2013-06-21 Thread David Marko
.datetime(2014, > 1, 21, 0, 0)datetime.datetime(2014, 2, 21, 0, 0)datetime.datetime(2014, > 3, 21, 0, 0) > > On Friday, June 21, 2013 3:16:06 PM UTC-5, David Marko wrote: >> >> timedeltas are fine, but I need rrules, which contains great >> functionality ...

[web2py] Re: Anyone got working python-dateutil in web2py app?

2013-06-21 Thread David Marko
timedeltas are fine, but I need rrules, which contains great functionality ... Dne pátek, 21. června 2013 22:12:53 UTC+2 Jim S napsal(a): > > I use dateutil extensively but not rrule(). > > -Jim > > > On Friday, June 21, 2013 1:52:16 PM UTC-5, David Marko wrote: >> &g

[web2py] Anyone got working python-dateutil in web2py app?

2013-06-21 Thread David Marko
I have to use 'rrule' part of python-dateutil library see here http://labix.org/python-dateutil But I cant get it to work under web2py. It freezes the Rocket server. Its working fine as standalone in Python, but in

[web2py] Re: How to create a custom helper that accepts body as long multiline html?

2013-06-13 Thread David Marko
My bad that I cant explain it better :-( Going to try to explain with this simple example: I need to generalize/convert this html in helper: **header simple text** **body html with web2py codes like URL() etc. ** **footer simple text** All ** text ** are variabl

[web2py] Re: How to create a custom helper that accepts body as long multiline html?

2013-06-13 Thread David Marko
a more specific example of what your original data looks > like and what you would like to achieve. > > > > On Thursday, 13 June 2013 11:37:42 UTC+1, David Marko wrote: >> >> Problem is not in HTML but how to send large html into widget/helper. For >> exam

[web2py] Re: How to create a custom helper that accepts body as long multiline html?

2013-06-13 Thread David Marko
as an example. Dne čtvrtek, 13. června 2013 12:14:03 UTC+2 villas napsal(a): > > Did you try to use the XML() helper to use raw html in your views? > > > On Thursday, 13 June 2013 08:40:31 UTC+1, David Marko wrote: >> >> How to create a custom helper that accepts

[web2py] How to create a custom helper that accepts body as long multiline html?

2013-06-13 Thread David Marko
How to create a custom helper that accepts body as long multiline html? For example helper that can create a div like the one below, as parameters I can provide header as simple text and content body as html, which can be quite long/complete. I can't use common pattern e.g. {{=DIV(B(I("hello ",

[web2py] Re: SQLFORM.grid run too many queries from database ...

2013-06-12 Thread David Marko
> there multiple calls to .grid() in the request? Also, is that your exact > .grid() call? I see left joins in the queries, but you don't have a "left" > argument in your .grid() call. > > Anthony > > On Wednesday, June 12, 2013 8:18:59 AM UTC-4, David Marko wr

[web2py] Re: SQLFORM.grid run too many queries from database ...

2013-06-12 Thread David Marko
Its grid doing this definitely. Removing the grid and all queries disapear. I also have had one left join in grid definition, which causes some additional queries to auth_user database. I have striped my code to simplest one, now when fetching one record from my database, I'm getting queries as

[web2py] Re: SQLFORM.grid run too many queries from database ...

2013-06-12 Thread David Marko
present" attribute of each field, which > requires a query per field per record. > > Anthony > > On Wednesday, June 12, 2013 7:47:08 AM UTC-4, David Marko wrote: >> >> I have a following table definition in my app. The table contains one >> filed that refer

[web2py] SQLFORM.grid run too many queries from database ...

2013-06-12 Thread David Marko
I have a following table definition in my app. The table contains one filed that references another table called 'category' and then 3 fields that references auth_user table. task_type=db.define_table('scheduled_task_type', Field('category','reference category', label='Kategorie', requires=IS_I

[web2py] Very nice DataGrid for Twitter Boostrap ...

2013-06-01 Thread David Marko
http://o5.github.io/grido-sandbox/ live example is here http://grido.bugyik.cz/example/ -- --- 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...

[web2py] Re: request.get_vars

2013-05-23 Thread David Marko
I think that request.get_vars return the reference to Storage object not its copy. So adding something to your variable de-facto adds items to former Storage. Dne čtvrtek, 23. května 2013 11:00:40 UTC+2 Domagoj Kovač napsal(a): > > {{export_get_vars = request.get_vars}} > {{export_get_va

[web2py] Upload field and SQLFORM.grid problem / bug?

2013-05-21 Thread David Marko
I have a table with upload field defined as follows: Field('file', 'upload', uploadseparate=True) . When I create some items using database administration, the image is displayed correctly. When I involve SQLFORM.grid in my controller, the link to file is not correct. See two links below: OK -

Re: [web2py] Is there a way how to use a viewScope on conversationScope like variable?

2013-04-29 Thread David Marko
I understand that scope idea is based on statefullness of these mentioned frameworks. I can see the statefullness important (and useful) when you work on intranet applications that require a more complicated logic etc. The viewScope starts on first page GET and lives for all POSTs to server an

Re: [web2py] Is there a way how to use a viewScope on conversationScope like variable?

2013-04-29 Thread David Marko
Such a great piece of code!! Thanks. Its very close but page scope should be bound to specific instance of page so it works also in situation when you open the same page in several browser tabs. It must be independent. -- --- You received this message because you are subscribed to the Googl

[web2py] Is there a way how to use a viewScope on conversationScope like variable?

2013-04-29 Thread David Marko
Is there a way how to use/crrate a viewScope on conversationScope like variable in web2py? In JAVA based frameworks (e.g. JSF, Spring Framework) there are scoped environments available. In web2py we have requestScope, and sessionScope (if I use this naming) but cant figure out how to create a v

[web2py] Anyone have experience with SSO between web2py and Wordpress (or some PHP framework)?

2013-04-15 Thread David Marko
Anyone have experience with SSO between web2py and Wordpress? We have to run Wordpress site for the one of our customers but would like to develop apps in web2py. To avoid duplicate login and having seamless integration we would like to integrate it somehow so when user is logged into Wordpress

[web2py] Re: Cheatsheet available?

2013-04-15 Thread David Marko
http://www.web2py.com/examples/static/web2py_cheatsheet.pdf Dne pondělí, 15. dubna 2013 14:03:18 UTC+2 Karl Thomas Schmidt napsal(a): > > Hi@all, > > is there anywhere a cheatsheet for all reserved words with one or two > lines of > explanation? > -- --- You received this message because y

[web2py] Re: iOS + web2py

2013-04-11 Thread David Marko
What do you use for creating iOS application? Do you use xcode directly or some framework like Titanium? -- --- 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 w

[web2py] Pypy 2.0 beta2 - is there anyone testing this with web2py?

2013-04-07 Thread David Marko
Is there anyone testing Pyp with web2py. Is it usable now or in future as faster plarfotm? http://morepypy.blogspot.cz/2013/04/pypy-20-beta-2-released.html -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group an

[web2py] Article: Frameworks Round 2

2013-04-05 Thread David Marko
http://www.techempower.com/blog/2013/04/05/frameworks-round-2/ -- --- 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 mor

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread David Marko
Meteor is different beast as it is also serverside platform based on node.js ... But development of this framework is quite slow ... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread David Marko
This scenario of one-page application is quite important for mobile hybrid applications. In this case you need standalone app running in device and consuming data from server. The server provides JSON coomunication with app. We have a great experience with http://trigger.io & http://angularjs

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-02 Thread David Marko
AngularJS is well designed ... and usefull ... Dne úterý, 2. dubna 2013 19:13:20 UTC+2 Ramos napsal(a): > > Backbone anyone? > > > 2013/4/2 Massimo Di Pierro > > >> Thanks for the good writing. We should make an example of integrating the >> two. >> >> >> On Tuesday, 2 April 2013 05:01:10 UTC-5,

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-16 Thread David Marko
Can you share uwsgi binary please? Dne sobota, 16. března 2013 10:21:15 UTC+1 Niphlod napsal(a): > > oh. That took nearly 2 seconds (and was nice to know, thanks Roberto). > > Although I feel dirty in the process (guess being among the first ones > kinda leads to "dirtyness"), now web2py is runn

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread David Marko
he "public > face" of things (i.e. has a own http mode, it eventually serves static > files, has HTTPS, etc etc etc), I'd go for uwsgi on Windows all the times, > and on Unix I'll keep putting it "behind" nginx just when the traffic hits > "sky-ro

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread David Marko
Are there issues with using(on Windows) Apache HTTP + mod_wsgi see the windows builds here http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop rec

[web2py] Re: Howto Multi file uploader

2013-01-30 Thread David Marko
You should look at the web2pyslices, there are a few posts on upload topic ... e.g. here http://www.web2pyslices.com/slice/show/1576/html5-file-uploads-with-jquery David Dne středa, 30. ledna 2013 10:48:57 UTC+1 Ramos napsal(a): > > Hello, what is the best way to add multi file upload functional

Re: [web2py] Set up of db.py takes too long time

2013-01-15 Thread David Marko
It really runs these validators during table definition, and not just in time when used? So its better to define this requires= ... in controller where this is used? David Dne úterý, 15. ledna 2013 9:23:43 UTC+1 rochacbruno napsal(a): > > > On Tue, Jan 15, 2013 at 6:20 AM, Daniel Gonzalez > >

Re: [web2py] Re: Sending mail to groups

2013-01-11 Thread David Marko
Hi Ramos, I can see here Lotus Notes roots :-) But defnitely some auth based functions would be nice as part of web2py as they are generaly usefull. They could be even part of auth object. Someting like auth.my_groups(), auth.my_roles(), auth.emails_for_group(group_name), auth.find_by_email(e

[web2py] Re: Help with multi tenancy

2013-01-09 Thread David Marko
Here is feature description in docs: http://web2py.com/books/default/chapter/29/06?search=tenancy#Common-fields-and-multi-tenancy Dne středa, 9. ledna 2013 13:31:59 UTC+1 Fabiano Faver napsal(a): > > Its my first time dealing with multi tenancy and I'm still a bit confused > how i could implem

[web2py] Re: How to track page visits

2013-01-09 Thread David Marko
If this has to be persistent among server restarts, you should store it into database ... Dne středa, 9. ledna 2013 9:38:34 UTC+1 sasogeek napsal(a): > > what code will I put in controllers/views to track the number of times > users visit a particular page such that anyone anywhere can see how m

[web2py] How can I prevent MARKMIN to escape HTML tags from my text ?

2012-12-04 Thread David Marko
How can I prevent MARKMIN to escape HTML tags from my text ? I have a markmin text with tags but MARKMIN escapes all these tags. I tried XML(MARKMIN()) but it doesnt help as MARKMIN itself escapes the html (seems like). Is there a way how to avoid this? David --

[web2py] How do you deal with obsolete uploaded files?

2012-11-12 Thread David Marko
How do you deal with obsolete uploaded files? I have a table definition with upload file field. When user uploads the file to document and later reedit the document and upload the different file then the former file is left in uploads folder. Is there a way how to delete this obsolete file when

[web2py] Re: How do you manage db migrations in application running in production?

2012-11-12 Thread David Marko
Hi Donatas, so you are creating all alter table commands manualy and run them? Dne pondělí, 12. listopadu 2012 17:25:09 UTC+1 Donatas Burba napsal(a): > > I have a folder called 'migrations' inside app, where all required db > (structure and data) changes are placed. After source update and apa

[web2py] How do you manage db migrations in application running in production?

2012-11-12 Thread David Marko
How do you manage db migrations in application running in production? I mean situation you have a importnant application running in production and then you make further development that requires changes in database. I dont think its safe to enable migrations for DAL but not sure how to maintain

[web2py] Re: track_changes

2012-11-07 Thread David Marko
Having the problem with this as well. Sometimes its works for 5-10 reloads and then stops until I restart web2py server. Dne středa, 7. listopadu 2012 11:47:13 UTC+1 Massimiliano napsal(a): > > Version 2.2.1 (2012-11-06 14:26:21) stable > > It's just me or it doesn't work anymore? > > -- > Mass

[web2py] Re: Anyone using Sunburnt for Apache SOLR access from web2py?

2012-11-06 Thread David Marko
al(a): > > Hi > > Did you implement this? > After trying Whoosh (and finding dificult to implement > stemmer/lematization for my language) i'm looking for another solution. > Is sunburnt the best solution to use solr with python/web2py? > Did you try solrpy? >

[web2py] Re: Current trunk breaks in validators.py

2012-10-30 Thread David Marko
Confirm, its working now again ... --

[web2py] Current trunk breaks in validators.py

2012-10-30 Thread David Marko
Traceback (most recent call last): File "c:\java\web2py\gluon\restricted.py", line 212, in restricted exec ccode in environment File "c:/java/web2py/applications/tp/controllers/default.py" , line 315, in File "c:\jav

[web2py] Re: Showing a fixed URL for a web2py application

2012-10-29 Thread David Marko
Simply use one frame, and entire application inside Dne pondělí, 29. října 2012 10:47:25 UTC+1 Daniel Gonzalez napsal(a): > > Hi, > > In my application, I would like the URL being shown to the user to be > always the same (http://www.myapp.com), no matter what page the user is > currently b

[web2py] Re: an editor ...

2012-10-25 Thread David Marko
Eclipse + Pydev Dne čtvrtek, 25. října 2012 15:49:57 UTC+2 apps in tables napsal(a): > > Hi, > > Pls, don't laugh... > > Does any one know of an editor that collapse and expand the functions > within the controller? > > Regards, > > Ashraf > --

[web2py] Re: help me test sessions in cookies

2012-10-16 Thread David Marko
Java PlayFramework! has this as the only default. Using client side cookie based sessions help create distributed environment easily, as there are no sessions specific to one server node. They use both client side cookies for sessions and caches for keeping serverside data. David Dne ú

[web2py] Re: Reloading modules stops working after some time ...

2012-10-15 Thread David Marko
Using the latest trunk ... Updated today --

[web2py] Reloading modules stops working after some time ...

2012-10-15 Thread David Marko
I have a module in my app that i was working on extensively today. I realised that web2py doesnt reload it correctly when change tracking enabled. I did some changes to module, after some 4 or 5 save/reload cycles wbe2py stopped reloading the module so old code runned. I could see old messages p

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread David Marko
very nice Massimo! Dne pondělí, 15. října 2012 13:55:39 UTC+2 Massimo Di Pierro napsal(a): > > Changelog: > > - overall faster web2py > - when apps are deleted, a w2p copy left in deposit folder > - change in cron (it is now disabled by default). removed -N option and > introdu\ > ced -Y. > - fas

[web2py] Fitching Data From json

2012-10-14 Thread David Marko
Use excelent requests library ... http://docs.python-requests.org/en/latest/ to get json data. Processing is simple then in python. --

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread David Marko
Its interal app so I cant provide the source. But I realised the app still contains 'local_import' so I have replaced with 'import' but no effect. Then I benchmarked both compiled and non compiled version ... each 2x and non-compiled is fine, but compiled leaks memory ... a) non-compiled versi

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread David Marko
Latest web2py trunk version from this morning, win7, python 2.7.3 . No special settings in app, but model tried to be lazy, so everything is defined in Field methods. --

[web2py] Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread David Marko
I recently benchmarked my two apps with apache benchmark just to see 'req/s' and found out(accidently) in task manager, that both leak memory somehow. e.g. in one of my app python interpreter has grown from 70kB to 110kB just after 10K requests. Second app was sightly better but still it eats

[web2py] Re: Scheduler and heartbeat stopped under certain condition ...

2012-10-11 Thread David Marko
Ok, seems the setup is correct for now. Here is the full report c:\java\web2py>c:\python27\python.exe web2py.py -K enterprise_search -D 0 web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2012 Version 2.1.0 (2012-10-10 15:15:45) dev Database drivers available: SQLite(sqlite3), MySQ

[web2py] Re: Scheduler and heartbeat stopped under certain condition ...

2012-10-11 Thread David Marko
logging.conf looks like this: [logger_root] level=DEBUG handlers=consoleHandler,rotatingFileHandler And nothing ... c:\web2py>c:\python27\python.exe web2py.py -K enterprise_search -D 0 web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2012 Version 2.1.0 (2012-10-10 15:15:45) dev

[web2py] Re: Scheduler and heartbeat stopped under certain condition ...

2012-10-10 Thread David Marko
Not sure about the logging config, I setup this: # generic app handler [logger_app] level=DEBUG qualname=web2py.app handlers=consoleHandler,rotatingFileHandler propagate=0 and run scheduler with -D 0, but nothing on console ... just exits silently. I will try to isolate it somehome so I could

[web2py] Re: Scheduler and heartbeat stopped under certain condition ...

2012-10-10 Thread David Marko
Tried with standalone scheduler(without TK widget), and this silently stops scheduler process with no traceback ... completely nothing. I cant create some simple demo as I load data from JSON service using requests library, then when I print a complete data as JSON, it works, when I iterate J

[web2py] Scheduler and heartbeat stopped under certain condition ...

2012-10-10 Thread David Marko
I just encountered strange behaviour with scheduler. I'm using the latest trunk web2py version on windows 7 with TK window, so I start scheduler from TK scheduler menu. I had a code that run fine and during some monitoring I have added the following line to this working code: print(x.get('compan

[web2py] Scheduler and succesfully completed tasks not showing in scheduler_run table

2012-10-10 Thread David Marko
I can see the following note in WEB2py Book: > "NB: scheduler_run records will be created as before for *FAILED*, * > TIMEOUT* and *STOPPED* tasks's statuses." Is there a way how to force to log(create scheduler_run entry) even for succesfull run? Sometimes one need to gather some information

[web2py] Re: Send emails using my own domain

2012-10-09 Thread David Marko
Do you see any error message in web2py or it seems like it has been sent out but you cant see message delivered? You should definitely look into postfix log ... David Dne úterý, 9. října 2012 13:18:29 UTC+2 lyn2py napsal(a): > > I have postfix installed and followed Massimo's instructions, whi

[web2py] Re: 2.1rc1 parse_version error

2012-10-08 Thread David Marko
+1 ... it really doesnt start ... Dne pondělí, 8. října 2012 9:26:35 UTC+2 szimszon napsal(a): > > In 2.1.0rc1 admin do not work. > > S'Traceback (most recent call last):\n File > "/home/gyszabolcs/fejlesztes/web2py/gluon/main.py", line 616, in > wsgibase\nBaseAdapter. > close_all_instance

[web2py] Running the latest trunk and admin doesnt show tables in database administration ...

2012-10-05 Thread David Marko
Running the latest trunk and admin doesnt show tables in database administration ... for any application ... --

Re: [web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-10-03 Thread David Marko
The speed difference is huge! Dne středa, 3. října 2012 11:35:06 UTC+2 Niphlod napsal(a): > > Well, seems to work. I'd need to know if there is some way to test if all > web2py framework works on on this, but a normal app seems to do pretty > fine. > Windows Vista (aaargh!), PortablePython 2.7.

Re: [web2py] Layout for forms

2012-09-20 Thread David Marko
It comes from following settings ... its time out for login session ... auth.settings.long_expiration = 3600*24*30 # one month auth.settings.remember_me_form = True See here: http://web2py.com/books/default/chapter/29/09?search=remember+me Dne čtvrtek, 20. září 2012 9:44:48 UTC+2 Alec Taylor n

[web2py] Re: multiple controllers under linux environment

2012-09-17 Thread David Marko
Check following: a) linux is case sensitife on files - check filenames and their references in web2py b) check correct os level permissions on files ... so web2py can see read them ... Dne pondělí, 17. září 2012 6:01:09 UTC+2 Vladimir Makarov napsal(a): > > I use different controller files: >

[web2py] WSDL Web service in web2py

2012-09-16 Thread David Marko
Regarding the SOAP web services see e.g. here: http://code.google.com/p/pysimplesoap/wiki/Web2Py --

Re: [web2py] Re: Web2py. for a minimalist app, it feels bloated. Do it I need it?

2012-09-11 Thread David Marko
+1 --

Re: [web2py] Example for supporting multiple oauth?

2012-09-09 Thread David Marko
+1 for sanction Dne neděle, 9. září 2012 19:45:51 UTC+2 Alec Taylor napsal(a): > > I'm pretty sure in the next version of web2py sanction (or similar) > will be integrated into web2py to simplify OAuth setup > > https://github.com/demianbrecht/sancti

[web2py] Re: Dealing with UTC and converting to local time

2012-09-09 Thread David Marko
Hi, what client side api/library do you use to to talk to OrientDB from web2py? --

[web2py] Re: How to use sheduler when running web2py in apache + mod_wsgi scenario ?

2012-09-07 Thread David Marko
(so apache is free, and your users > happy). > > Having a scheduler "managed" by apache is infact "killing the purpose" of > the scheduler. > > Il giorno venerdì 7 settembre 2012 14:32:09 UTC+2, David Marko ha scritto: >> >> How to use sheduler whe

[web2py] How to use sheduler when running web2py in apache + mod_wsgi scenario ?

2012-09-07 Thread David Marko
How to use sheduler when running web2py in apache + mod_wsgi scenario ? Is it ok to run it as ussual I mean start it separately from apache-wsgi' python web2py.py -K myapp:group1:group2,myotherapp:group1' ? No problem with this? --

[web2py] Re: web2pyslices for Android

2012-09-03 Thread David Marko
Very nice. Just curisous, what did you use, is it completely native, or hybrid using PhoneGap, Trigger.io or something? David Dne úterý, 4. září 2012 1:46:16 UTC+2 rochacbruno napsal(a): > > > Hi, I just published a beta version of web2pyslices reader for Android: > https://play.google.com/stor

  1   2   3   4   >