[web2py] Re: How to create pdfs using markmin2pdf with Windows 7

2012-01-05 Thread stefaan
I am not sure if miktex includes pdflatex. I only used it on linux but it should be easy to define it after miktex is installed. MiKTeX *does* indeed contain pdflatex.

[web2py] Movuca - The Social CMS - Need Testers and Contributors

2012-01-05 Thread Bruno Rocha
Hi, I am developing a Social CMS, I was very inspired by vikuit.com but I made some conceptual improvements on what I think is a Social CMS. This is a simple system based in Articles, Content Types, Themes, Users, Activities etc... The code is in github[1] and you have to note that I am trying

[web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-05 Thread Massimo Di Pierro
Looks really slick. On Jan 5, 4:36 am, Bruno Rocha rochacbr...@gmail.com wrote: Hi, I am developing a Social CMS, I was very inspired by vikuit.com but I made some conceptual improvements on what I think is a Social CMS. This is a simple system based in Articles, Content Types, Themes,

Re: [web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-05 Thread Bruno Rocha
On Thu, Jan 5, 2012 at 9:27 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Looks really slick This is the basic theme, I am working on two more themes. One based in Foundation and another in twitter bootstrap. It is all modular so its easy to create new themes. -- Bruno Rocha

Re: [web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-05 Thread Martín Mulone
nice bruno, what does it mean movuca? 2012/1/5 Bruno Rocha rochacbr...@gmail.com On Thu, Jan 5, 2012 at 9:27 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Looks really slick This is the basic theme, I am working on two more themes. One based in Foundation and another in

Re: [web2py] Re: utf-8 and pyfpdf

2012-01-05 Thread Martin Weissenboeck
Thank you. I had to change the following lines: 1247 table = TABLE( _border=0, _align=center, _width=50%, *rows) 1305 table = TABLE( _border=1, _align=center, _width=100%, *[head,foot, body]) 2012/1/4 Christopher Steel chris.st...@gmail.com French and English pdf examples (and

[web2py] How do Global Variables Work?

2012-01-05 Thread Peter O
Hihi, I am baffled by what I see between Example 1 and 2. It may be a good case to improve my understanding of the run-time environment of web2py. Thanks in advance for any comments. VIEW: (test.html) html body {{=globals().get('t1', False)}} /body /html CONTROLLER: == Example 1 == def

Re: [web2py] How do Global Variables Work?

2012-01-05 Thread Bruno Rocha
you need to pass it return dict(t1=t1) or return locals() http://zerp.ly/rochacbruno Em 05/01/2012 12:03, Peter O peter.k.ocon...@gmail.com escreveu: Hihi, I am baffled by what I see between Example 1 and 2. It may be a good case to improve my understanding of the run-time environment

[web2py] Re: MARKMIN clarification

2012-01-05 Thread lyn2py
Should I log an issue for this? Or might it already be fixed? On Jan 2, 10:25 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I agree with you something is wrong... and needs fixing. On Jan 2, 7:26 am, lyn2py lyn...@gmail.com wrote: I double-checked... there are no extra

[web2py] Re: Need to update the twitter book example?

2012-01-05 Thread Alan Etkin
Sorry for the late post. The admin twitter issue should be fixed in trunk. http://code.google.com/p/web2py/issues/detail?id=577 On 21 dic 2011, 22:19, lyn2py lyn...@gmail.com wrote: Not sure if you have noticed, but the web2py admin tweets are also not showing up since 1.99.3 On Dec 21, 1:34 

Re: [web2py] How do Global Variables Work?

2012-01-05 Thread Peter O
I understand explicitly passing the variable will do the work. However, what's the purpose of global variables? I thought this conflicts with one of the examples in the Introduction chapter. Secondly, I don't understand the different results between Example 1 and 2. Something deeper is

[web2py] Re: How do Global Variables Work?

2012-01-05 Thread Anthony
See http://web2py.com/books/default/chapter/29/4#Workflow: The view sees every variable defined in the models as well as those in the dictionary returned by the action, but does not see global variables defined in the controller. web2py builds an environment and runs the models in that

Re: [web2py] How do Global Variables Work?

2012-01-05 Thread Anthony
However, what's the purpose of global variables? I thought this conflicts with one of the examples in the Introduction chapter. Which example?

[web2py] Re: How do Global Variables Work?

2012-01-05 Thread Peter O
http://web2py.com/books/default/chapter/29/5?search=globals%28%29 I see. Am I right that View doesn't see the global variables (in Controller), but the parent View sees the variables in View as global variables? Then, what causes the difference between Example 1 and 2? What's the relationship

[web2py] Re: MARKMIN clarification

2012-01-05 Thread Massimo Di Pierro
Please log it. I will fix it asap but log it so I do not forget. On Jan 5, 8:30 am, lyn2py lyn...@gmail.com wrote: Should I log an issue for this? Or might it already be fixed? On Jan 2, 10:25 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I agree with you something is

[web2py] Re: How do Global Variables Work?

2012-01-05 Thread Massimo Di Pierro
The list of global variables defined in models and passed to the controllers are also passed to the view (for example the views see db, request, session, etc. globals variables defined in controllers are not passes to the view unless done explicitely. On Jan 5, 8:03 am, Peter O

Re: [web2py] Re: Selecting Latest Thread for a specific category

2012-01-05 Thread Andrew Evans
Hey ty that helped enough to solve my problem db((db.forum_post.category == db.category.id) (db.category.id == forums.id)).select(db.forum_post.ALL, orderby=~db.forum_post.id, limitby=(0,1)) the forums value is a loop through the categories :-) *cheers ty very much for your help On Wed,

[web2py] Re: How do Global Variables Work?

2012-01-05 Thread Anthony
On Thursday, January 5, 2012 10:14:45 AM UTC-5, Peter O wrote: http://web2py.com/books/default/chapter/29/5?search=globals%28%29 The globals being accessed in the above linked example (which is actually the 'welcome' app layout.html) are defined either in models or in another (included)

[web2py] define_table - how to do this correctly (best practice?)

2012-01-05 Thread lyn2py
I have tables with individual properties, db.define_table('article', Field('title', 'string', length=255,required=True), Field('description', 'text',required=True), ) db.define_table('post', Field('title', 'string', length=255,required=True), Field('description', 'text',required=True), )

[web2py] How to do that: Verifying email account ownership

2012-01-05 Thread thstart
Verifying email account ownership - I am brainstorming for the best way to know email address is owned by an user. Something like that - a user enters email address, my app generates a code and sends an email message with a link with this code, the user clicks and comes to my app which thus

Re: [web2py] How to do that: Verifying email account ownership

2012-01-05 Thread Nik Go
Do you mean a registered user's email address? It's included in web2py, just enable it. Check out http://web2py.com/book/default/chapter/09#Mail-and-Auth On Friday, January 6, 2012, thstart wrote: Verifying email account ownership - I am brainstorming for the best way to know email address

[web2py] Re: define_table - how to do this correctly (best practice?)

2012-01-05 Thread Andrew
I think this is more of a data modeling question than web2py. I would have one table called content with an extra column content_type . You could define queries over the top if you just want one ofthe three. Your M:M table logically joins to content. You sort of have three subtype tables, but

Re: [web2py] How to do that: Verifying email account ownership

2012-01-05 Thread thstart
I mean a separate functionality from auth. Like the user is posting a list of email addresses in a text box and my app gets them and sends verification email messages to these accounts. Once the user clicks the links to go to my app and my app to mark this email verified and store it in a users'

[web2py] Re: dropbox python api

2012-01-05 Thread Joseph Jude
If anyone is interested, you can look into the code for dropbox connection here: http://goo.gl/QYT2y This is my default.py. Look at dropbox_connect and process_dropbox. Question: How can I automate this with cron? When I do it, it stops with the redirect. Thank you, Joseph

[web2py] Packaging web2py + application

2012-01-05 Thread Ross Peoples
Hello everyone, I want to make an RPM package for my application that primarily targets CentOS. I am working with version 5, which only has Python 2.4. I would like to create an RPM that packages Python 2.7, web2py, and my application. Does anyone have any experience with doing anything like

Re: [web2py] Packaging web2py + application

2012-01-05 Thread Angelo Compagnucci
I can suggest you http://code.google.com/p/pts-mini-gpl/wiki/StaticPython It's a statically compiled version (and runtime) of python, you can drop it in web2py folder and write a script that starts ./python web2py.py In this way you have not to fight with rpm packing (I made several

[web2py] Is there an example? RPC between applications

2012-01-05 Thread Bruce Wade
The XMLRPC client can also be implemented inside a web2py action, so that one action can talk to another web2py application (even within the same installation) using XMLRPC. Is there an example of how to properly do this? The situation is: 1) We have multiple applications in the same installation

Re: [web2py] Packaging web2py + application

2012-01-05 Thread Ross Peoples
StaticPython looks pretty cool, but there are two issues I see with this: First, my target platform is 64-bit. StaticPython is only 32-bit. Second, the RPM is a requirement. In the future, we may create a yum repo for the application for updates and things like that, so we have to use RPM from

[web2py] Blog mention of Web2py

2012-01-05 Thread mikech
http://pyrseas.wordpress.com/2011/12/19/design-notes-on-database-application-development/

[web2py] crud update with writeable=readable=False

2012-01-05 Thread lucas
hello one and all, i have a field under a custom auth_user called approved. it is writeable and readable False so that the users can not see or edit this field under the register form. but, i am also generating a form of the table where i want to be able to edit the approved field as the admin

[web2py] Re: crud update with writeable=readable=False

2012-01-05 Thread Alan Etkin
One way is to configure this attribute in the custom form action: db.auth_user.field name.readable = True Other actions will use the readable and writable values defined at the model. On 5 ene, 16:26, lucas sjluk...@gmail.com wrote: hello one and all, i have a field under a custom auth_user

[web2py] Re: crud update with writeable=readable=False

2012-01-05 Thread Anthony
The readable and writeable attributes of a field can be set conditionally (e.g., depending on request parameters or user authorization) or changed at any point in your code, so you could do: db.define_table('auth_user', ..., Field('approved', writeable = auth.has_membership('admin') and

[web2py] Re: Cookbook online ?

2012-01-05 Thread Omi Chiba
OK, I will consider purchasing one. On Jan 4, 9:55 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I believe they will sell it in PDF. They have copyright. I have no saying on the matter. On Jan 4, 9:50 am, Omi Chiba ochib...@gmail.com wrote: Great work !! Will it be

[web2py] Re: crud update with writeable=readable=False

2012-01-05 Thread lucas
yes, thank you anthony. the first one didn't work because in my db.py model file, the creation of the auth_user table is before the auth_permission table, so it blows the program. but the second suggestion of changing the writable attribute to True in the code worked great. thank you so much.

[web2py] Re: crud update with writeable=readable=False

2012-01-05 Thread Anthony
On Thursday, January 5, 2012 3:34:54 PM UTC-5, lucas wrote: yes, thank you anthony. the first one didn't work because in my db.py model file, the creation of the auth_user table is before the auth_permission table, so it blows the program. Right, sorry. You could simply move it to right

[web2py] default_application showing full url

2012-01-05 Thread Leopold
Hi all, I have an application myapp which I want to make it the default app when I navigate to the base domain (let's say localhost for now). By adding: default_application = 'myapp', to the routers BASE dict in routes.py I am able to do that, however it shortens the resulting url from

[web2py] Re: default_application showing full url

2012-01-05 Thread Anthony
That's probably because default_controller defaults to 'default', and default_function defaults to 'index' -- you might get the full URL if you explicitly set those to None in your router (haven't tried it). Anthony On Thursday, January 5, 2012 3:53:11 PM UTC-5, Leopold wrote: Hi all, I

[web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-05 Thread Alan Etkin
The WYSIWYG editor works smooth, altough i didn't used all of its functions. I also like the multi-tab upload facility. It all looks really good with Firefox 3.6.24 Martin Mulone is also developing Instant Press for web2py, with similar features i think. On 5 ene, 07:36, Bruno Rocha

[web2py] Re: define_table - how to do this correctly (best practice?)

2012-01-05 Thread lyn2py
What you say is true, however for argument's sake, how could I achieve the above with the 4th table? In my situation, the 3 tables have different fields (but I didn't have access to the file so I simply made them the same in the example here. Thanks. On Jan 6, 1:24 am, Andrew

Re: [web2py] Re: global functions in models

2012-01-05 Thread Tsvi Mostovicz
I managed to find the culprit. The function before it had a mismatched parentheses. So it would continue reading this function and fail on compilation. Thanks for all your replies. The append works, although if this is a new user and no list has been defined yet it won't. So I check if it returns

[web2py] Re: Is there an example? RPC between applications

2012-01-05 Thread Alan Etkin
On services and authentication there is a section in the book that gives an example, as posted by Anthony in another thread: http://web2py.com/books/default/chapter/29/10?search=services+and+authentication#Services-and-Authentication Thread on similar topic:

Re: [web2py] Re: Is there an example? RPC between applications

2012-01-05 Thread Bruce Wade
Thanks for the reply, I have already read that section prior to sending my email :D I am still unclear. I know how to handle the login when in a web browser. However when using the RPC server I just get the following response: send: 'POST /api/default/call/jsonrpc HTTP/1.1\r\nHost:

[web2py] Re: Packaging web2py + application

2012-01-05 Thread LightDot
Is Python 2.7 a must? There are python 2.6 RPMs available from EPEL repository. They install parallel to the existing python 2.4 and thus avoids breaking yum and other applications that rely on stock python 2.4. Python 2.7 could be packaged in a similar way, but by using this existing packages

[web2py] Re: crud update with writeable=readable=False

2012-01-05 Thread lucas
yes, perfect and that makes perfect sense. hey anthony, what is the setting to email the mail.settings.login when a user's registration is pending. meaning when a new user registers, how do we setup web2py to email us so that we can erase pending under the registration key? thanx again and

[web2py] Re: crud update with writeable=readable=False

2012-01-05 Thread Anthony
On Thursday, January 5, 2012 10:45:31 PM UTC-5, lucas wrote: yes, perfect and that makes perfect sense. hey anthony, what is the setting to email the mail.settings.login when a user's registration is pending. meaning when a new user registers, how do we setup web2py to email us so that

Re: [web2py] Re: Logging in web2py

2012-01-05 Thread Joseph Jude
I'm using this logging module with logging.conf. It works fine in controllers models. How to make it work in modules? Regards, Joseph

[web2py] Re: Implementing tornado chat server with web2py

2012-01-05 Thread Red Arrow
for chatting, usually use XMPP like Gtalk or facebook chat. If choosing between gevent or tornado, gevent can handle better than tornado. http://nichol.as/benchmark-of-python-web-servers On 5 Tháng Giêng, 09:01, Khalil KHAMLICHI khamlichi.kha...@gmail.com wrote: looks like websockets dont work