[web2py] need testers

2010-11-25 Thread mdipierro
here is a new feature in trunk... session.connect(request,response,separate=True) it creates a subfolder structure of the applications/app/sessions/ folder to deal with the case very many session. The patch was proposed by Wang Huaiyu long ago and I made some changes. I need people to test it.

Re: [web2py] Re: ssl and http web2py command line issues

2010-11-25 Thread Dave Johnson
Hi Tim, thanks for responding--no worries on the delay. There was a mistake on my original post, mycert should be pared with the private key, not the cert with the cert. [that's what I get with edited the post to try and clarify it]. You can test the posted cert/key pair where the private key

[web2py] Plugin: many files on static/plugin folder

2010-11-25 Thread toan75
Hi, In Version 1.89.5, I had this error when put many files in to static/ plugin_xxx folder: File E:\web2py-XDCB\applications\admin\views\default\plugin.html in module at line 212 IndexError: list index out of range while path!=file_path: if

Re: [web2py] Re: send attachment via xmlrpclib

2010-11-25 Thread António Ramos
In this scenario where i transfer a file in uploads folder i have a problem. I cannot see or download the file via http://127.0.0.1:8000/CrossValidation1/appadmin/download/db/ico1.gif The ico1.gif is there but i get the error 404 Not found So i cannot create a link in my app to that file. What

[web2py] Re: How could I send a email to every members?

2010-11-25 Thread selecta
why not send one mail with everybody in bcc? On Nov 24, 3:50 pm, Thadeus Burgess thade...@thadeusb.com wrote: the problem with mail.send is it creates a brand new connection to the SMTP server *every* single time you call it. If you are sending more than 10 emails at a time this will not be

[web2py] How to run web2py from cron without intro text?

2010-11-25 Thread zdzana
I need to run the script in the environment web2py, via cron, but without the introductory text on the printed output: web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010 [...] It is very important for me to output to stdout, the information appearing on it are

[web2py] how to access the docstrings of controller functions

2010-11-25 Thread selecta
Is it possible to access the docstrings of controller functions? i tried the following: I added __init__.py to the controllers folder and wrote import applications.myapp.controllers.mycontroller print dir(applications.myapp.controllers.mycontroller) however this gives me ...

[web2py] Re: formatting in IS_IN_DB() list

2010-11-25 Thread Mirek Zvolský
Hi Annet, thank you very much for your help. I have used notes from your log and all works excellent. However at this time I need to do such translation in 3-rd parameter of IS_IN_DB(...): IS_IN_DB(db, 'lesson.id', '%(start)s') ...with field name (start) this works fine, but when I try to use any

[web2py] Re: how to access the docstrings of controller functions

2010-11-25 Thread ron_m
It should work if you run web2py in shell mode and run the models, this will define auth. python web2py.py -S myapp -M then do the import etc. I just tried it on my own app, worked ok. The __init__.py had to be there (it was empty). Ron On Nov 25, 1:58 am, selecta gr...@delarue-berlin.de

[web2py] Re: how to access the docstrings of controller functions

2010-11-25 Thread selecta
but i do not want to run this code in the shell but in a controller controllers/test.py def test(): 'this is a test' import applications.myapp.controllers.test return dict(a = dir(applications.myapp.controllers.test)) i have similar problems for other objects like db, request ...

[web2py] Re: Please help: Are these errors?

2010-11-25 Thread Seeker
Hi, Can anyone else replicate this issue (error 1 described at the top of this post)? It seems to be an error introduced when creating an app with the wizard and specifying related (referenced) tables in an incorrect order. Thanks.

[web2py] Re: How could I send a email to every members?

2010-11-25 Thread villas
On Nov 25, 9:40 am, selecta gr...@delarue-berlin.de wrote: why not send one mail with everybody in bcc? It depends on your mail provider. In our case, I found out that they do not like more than 50 recipients in one single email. So what I often do is put 45 names at a time in BCC. I also

[web2py] Re: change in trunk needs testing

2010-11-25 Thread dederocks
Same problem for me. On 25 nov, 06:04, Anthony abasta...@gmail.com wrote: Is the test supposed to be done without the win32 extensions installed (I have them installed)? Anyway, I tried the test. Before updating trunk, it behaves as you say -- I opened two windows in quick succession -- the

Re: [web2py] Re: How could I send a email to every members?

2010-11-25 Thread Branko Vukelic
On Thu, Nov 25, 2010 at 12:41 PM, villas villa...@gmail.com wrote: I appreciate that we can send mail directly, but these days mail from unrecognised servers is considered 'suspicious' by the recipients' There's a big difference between 'unrecognized' and 'unidentified'. The latter is a server

[web2py] Re: How could I send a email to every members?

2010-11-25 Thread villas
Hi Branko, Yes, I'm sure you are probably right and I am not an expert with this. We have just tried it various ways and we got the best results sending via recognisable 'mainstream' mail service providers. We can live within the limits of their quotas, so we just do it that way. If you want to

[web2py] Re: redirect using a new window

2010-11-25 Thread leone
Thanks for suggest, but I need something redirect(URL(..), _target='new'). I fear that it doesn't exists, though web2py does anything. On Nov 24, 11:19 pm, mdipierro mdipie...@cs.depaul.edu wrote: or a href={{=URL(...)}} target=newclick me/a On Nov 24, 2:47 pm, Michele Comitini

[web2py] Re: change in trunk needs testing

2010-11-25 Thread Seeker
+1

Re: [web2py] Re: personnalize login page

2010-11-25 Thread Richard Vézina
You right, [?] I probably find it when reviewing my code... Thanks anyway... There is eyes that are watching here! Richard On Wed, Nov 24, 2010 at 9:00 PM, villas villa...@gmail.com wrote: Regarding your code... if request.args(0) == 'login': return

Re: [web2py] Problem starting server web2py

2010-11-25 Thread Marcos Vinhal
S.O? - windows vista web2py version? - 1.89.5 web2py distribution [.exe,.app,_src] ? - exe Python version? - 2.5 2010/11/24 Bruno Rocha rochacbr...@gmail.com Please include more information about your environment. S.O? web2py version? web2py distribution [.exe,.app,_src] ? Python

Re: [web2py] Problem starting server web2py

2010-11-25 Thread Bruno Rocha
Can you install Mark Hammond win32 extension for test? http://starship.python.net/crew/mhammond/ 2010/11/25 Marcos Vinhal ma.vin...@gmail.com S.O? - windows vista web2py version? - 1.89.5 web2py distribution [.exe,.app,_src] ? - exe Python version? - 2.5 2010/11/24 Bruno Rocha

[web2py] Foreign Key

2010-11-25 Thread Johann Spies
I want to use a foreign key which does not refer to the id-field of another record eg. db.define_table('journal', Field('ouid','integer'), Field('journal',unique=True), Field('issn', length=10), Field('notes', type='text'),

Re: [web2py] Foreign Key

2010-11-25 Thread Richard Vézina
I think it cover in as keyed table in the book Richard On Thu, Nov 25, 2010 at 9:16 AM, Johann Spies johann.sp...@gmail.comwrote: I want to use a foreign key which does not refer to the id-field of another record eg. db.define_table('journal', Field('ouid','integer'),

Re: [web2py] Foreign Key

2010-11-25 Thread Johann Spies
Hallo Richard, On 25 November 2010 16:26, Richard Vézina ml.richard.vez...@gmail.comwrote: I think it cover in as keyed table in the book I am not sure how that will solve my problem. It creates new problems: signature = db.Table(db, 'signature', Field('created_on',

[web2py] mongoDb

2010-11-25 Thread Aurigadl
In my projects I'm using MongoDB I need to work with this tool you need this to work with web2py? Make controller for this RDBMS or or this tool work wiht this

Re: [web2py] need testers

2010-11-25 Thread Vinicius Assef
On Thu, Nov 25, 2010 at 6:03 AM, mdipierro mdipie...@cs.depaul.edu wrote: here is a new feature in trunk... session.connect(request,response,separate=True) it creates a subfolder structure of the applications/app/sessions/ folder to deal with the case very many session. Massimo what is the

[web2py] Re: Inserting custom field types broken

2010-11-25 Thread Ishbir
Did you check out the bug Massimo?

[web2py] Expression in 3-rd parameter of IS_IN_DB()

2010-11-25 Thread Mirek Zvolský
I'm sorry that I repeat my question, but I still cannot find solution. Following works: IS_IN_DB(db, 'lesson.id', '%(name)s') And now I need an expression in 3-rd parameter instead of simple field name, something like: IS_IN_DB(db, 'lesson.id', '%(name.upper())s') to see all names in Uppercase.

Re: [web2py] mongoDb

2010-11-25 Thread Bruno Rocha
I am using PyMongo for one project http://api.mongodb.org/python/1.9%2B/index.html I put the libs in modules and created some methods in my /models to abstract commom tasks, PyMongo is very simple, so it is easy to access the data directly form controllers or views using its API. 2010/11/25

[web2py] Re: send attachment via xmlrpclib

2010-11-25 Thread mdipierro
Because you do not have the freedom to name files in upload folder any way you like. web2py must name those files. replace your function with this: @service.xmlrpc def checkflow(file,name): import cStringIO db.image.insert(file=db.image.file.store(cStringIO.StringIO(file.data),name))

[web2py] Re: formatting in IS_IN_DB() list

2010-11-25 Thread mdipierro
The format can be a function that takes a record and return a string. You can use lambda. On Nov 25, 4:06 am, Mirek Zvolský zvol...@seznam.cz wrote: Hi Annet, thank you very much for your help. I have used notes from your log and all works excellent. However at this time I need to do such

[web2py] Re: how to access the docstrings of controller functions

2010-11-25 Thread mdipierro
You cannot import web2py models and controllers. Because they can only be executed in the web2py environment. They use keywords (request, response, etc.) that are not defined on import. On Nov 25, 5:22 am, selecta gr...@delarue-berlin.de wrote: but i do not want to run this code in the shell but

[web2py] Re: mongoDb

2010-11-25 Thread David Marko
Where do you store the Pymongo connection object between requests? In some cache object? David On 25 lis, 16:16, Bruno Rocha rochacbr...@gmail.com wrote: I am using PyMongo for one projecthttp://api.mongodb.org/python/1.9%2B/index.html I put the libs in modules and created some methods in

[web2py] Re: change in trunk needs testing

2010-11-25 Thread mdipierro
can you please try again. On Nov 24, 11:04 pm, Anthony abasta...@gmail.com wrote: Is the test supposed to be done without the win32 extensions installed (I have them installed)? Anyway, I tried the test. Before updating trunk, it behaves as you say -- I opened two windows in quick succession

[web2py] Re: need testers

2010-11-25 Thread mdipierro
Many. if a session is called 01234567890abcdefgxyz it will be in a subfolder yx/ but it is customizable. Instead of True you can pass a function that build the name of the subfolder from the session name. On Nov 25, 9:03 am, Vinicius Assef vinicius...@gmail.com wrote: On Thu, Nov 25, 2010 at

Re: [web2py] Foreign Key

2010-11-25 Thread Richard Vézina
I just point out the doc I think could help you... I have not work with multiple PK and FK. There is also UUID, but not sure it serve for your needs Richard On Thu, Nov 25, 2010 at 9:51 AM, Johann Spies johann.sp...@gmail.comwrote: Hallo Richard, On 25 November 2010 16:26, Richard Vézina

Re: [web2py] Foreign Key

2010-11-25 Thread Richard Vézina
Do you mean that you have a recursive sql request? Or you want to rename the default id field name for PK? In the second case : Field('ouid','id') does the tricks... Richard On Thu, Nov 25, 2010 at 9:16 AM, Johann Spies johann.sp...@gmail.comwrote: I want to use a foreign key which does

Re: [web2py] Foreign Key

2010-11-25 Thread Richard Vézina
For postgres you need also to specify the sequence name : sequence_name='tablename_newidname_seq' On Thu, Nov 25, 2010 at 10:47 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Do you mean that you have a recursive sql request? Or you want to rename the default id field name for PK?

[web2py] Re: change in trunk needs testing

2010-11-25 Thread dederocks
Hi Massimo, Here is the error I got this time: C:\Users\Andre\Documents\web2pyweb2py web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010 Version 1.89.5 (2010-11-21 16:03:13) Database drivers available: SQLite3, PostgreSQL Starting hardcron... Traceback (most recent

[web2py] Re: Foreign Key

2010-11-25 Thread Mirek Zvolský
I think in relational databases (=in standard database world) foreign key always should point to the primary key. Maybe PostgreSQL allows such something, maybe PostgreSQL (or other database) allows a construction of primary key from more as one fields, and so on, but I think it is not good idea

[web2py] T with variables

2010-11-25 Thread Carlos
Hi, I am trying to make internationalization work with variables, in my local environment on Win7, with web2py 1.89.1. For reference I have the following test controller: def xyz(): x = 'xyz' return T(x) But after calling that method, when I look at any of the language files, the

Re: [web2py] Re: mongoDb

2010-11-25 Thread Bruno Rocha
from pymongo import Connection ... ... connection = Connection() ... ... ... ... connection.disconnect() In some controllers I tried to keep connection in session or cache, but it fails. 2010/11/25 David Marko dma...@tiscali.cz Where do you store the Pymongo connection object between requests?

Re: [web2py] Re: mongoDb

2010-11-25 Thread Bruno Rocha
also, response._caller can be useful to raise the disconnection 2010/11/25 Bruno Rocha rochacbr...@gmail.com from pymongo import Connection ... ... connection = Connection() ... ... ... ... connection.disconnect() In some controllers I tried to keep connection in session or cache, but

[web2py] Re: change in trunk needs testing

2010-11-25 Thread mr.freeze
Traceback (most recent call last): File C:\eclipse\plugins \org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py, line 1145, in module debugger.run(setup['file'], None, None) File C:\eclipse\plugins \org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py, line 916, in run

[web2py] Re: mongoDb

2010-11-25 Thread David Marko
Massimo adviced me to use something like this previsously: def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) It seemed to work but I had no opportunity to test it

[web2py] Re: Expression in 3-rd parameter of IS_IN_DB()

2010-11-25 Thread mdipierro
IS_IN_DB(db, 'lesson.id', lambda r: r['name'].upper()) this may work. On Nov 25, 9:11 am, Mirek Zvolský zvol...@seznam.cz wrote: I'm sorry that I repeat my question, but I still cannot find solution. Following works: IS_IN_DB(db, 'lesson.id', '%(name)s') And now I need an expression in

[web2py] Re: T with variables

2010-11-25 Thread mdipierro
Update all languages will not catch this because this can only be caught at run-time. The string should be added in the language file when you run the action (and the browser set to the language needing translation). try again, check the language file timestamp. If the file is not being updated,

[web2py] Re: Inserting custom field types broken

2010-11-25 Thread mdipierro
Please check trunk again. Is it fixed? On Nov 25, 9:05 am, Ishbir ishbi...@gmail.com wrote: Did you check out the bug Massimo?

[web2py] one more security feature in trunk

2010-11-25 Thread mdipierro
Consider this scenario... You use http to login and somebody intercept the communication, steals the cookie and logins using your credentials. This is no more possible. Now web2py check that the IP of the client is the same as the IP of the client that started the session. If the cookie is

[web2py] Re: change in trunk needs testing

2010-11-25 Thread mdipierro
At least we know it is being executed. :-) I think I fixed this one. Please try again. Massimo On Nov 25, 9:53 am, mr.freeze nat...@freezable.com wrote: Traceback (most recent call last):   File C:\eclipse\plugins \org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py, line 1145, in module

[web2py] Re: How to render LaTeX templates?

2010-11-25 Thread mdipierro
Use this: from gluon.template import render def action(): return render('/full/path/to/ template.tex',context=dict(form_name='abc'),delimiters = ('%','%')) and use \setkomavar{fromname}{%=data.get('from_name')%} Mind that you will not be able to use {{export}} and {{import}}. On Nov 25,

[web2py] Re: change in trunk needs testing

2010-11-25 Thread mr.freeze
It seems to be working. I open one in IE and another in Firefox about 2 seconds later. After the IE page loads, the Firefox page loads about 2 seconds later. Is that what you're looking for? On Nov 25, 10:09 am, mdipierro mdipie...@cs.depaul.edu wrote: At least we know it is being executed. :-)

[web2py] Re: Plugin: many files on static/plugin folder

2010-11-25 Thread mdipierro
Fixed in trunk. Please try it. Massimo On Nov 25, 3:11 am, toan75 toa...@gmail.com wrote: Hi, In Version 1.89.5, I had this error when put many files in to static/ plugin_xxx folder: File E:\web2py-XDCB\applications\admin\views\default\plugin.html in module at line 212 IndexError: list

[web2py] Re: change in trunk needs testing

2010-11-25 Thread mdipierro
Perfect! Thanks Mr Freeze. On Nov 25, 10:18 am, mr.freeze nat...@freezable.com wrote: It seems to be working. I open one in IE and another in Firefox about 2 seconds later. After the IE page loads, the Firefox page loads about 2 seconds later. Is that what you're looking for? On Nov 25,

Re: [web2py] one more security feature in trunk

2010-11-25 Thread Richard Vézina
What about the MAC address? In intranet a user can bump a other user IP easily Consider this under windows : http://www.wikihow.com/Change-your-IP-Address-%28Windows%29 Not sure you can pick particular IP. With a VM under Linux you can pick the IP you want... It will conflict on the network

[web2py] plugin_wiki.widget() and markItUp editor

2010-11-25 Thread Albert Abril
Hi, there's a quick way of include the markItUp editor in your view to edit a text Field? I'm reading about plugin_wiki widgets, but can't guess if markItUp is a widget or not.

[web2py] Re: T with variables

2010-11-25 Thread Carlos
Hi Massimo, Thanks, it now works ok with T.force. Is there a way to automatically update multiple language files at once with all these lazy T's?. Carlos On Nov 25, 10:00 am, mdipierro mdipie...@cs.depaul.edu wrote: Update all languages will not catch this because this can only be caught

[web2py] Re: one more security feature in trunk

2010-11-25 Thread mdipierro
web2py cannot access the MAC address of the requester. The web server does not provide the information. The web server may not have the information itself, depending on the OS. capturing the ethernet header requires more privileges that the web server has. On Nov 25, 10:21 am, Richard Vézina

[web2py] Re: T with variables

2010-11-25 Thread mdipierro
Not for T(variable) since variable is only defined at runtime. On Nov 25, 10:24 am, Carlos carlosgali...@gmail.com wrote: Hi Massimo, Thanks, it now works ok with T.force. Is there a way to automatically update multiple language files at once with all these lazy T's?.    Carlos On Nov

[web2py] Re: plugin_wiki.widget() and markItUp editor

2010-11-25 Thread mdipierro
1) install plugin_wiki 2) in the view that needs it: script type=text/javascript src={{=URL('static',f='plugin_wiki')}}/ markitup/jquery.markitup.pack.js/script script type=text/javascript src={{=URL('static',f='plugin_wiki')}}/ markitup/sets/markmin/set.js/script link rel=stylesheet

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Kuba Kucharski
If you have a router, then your machine's MAC address will go no further than that. Your router's MAC address will show up in packets sent further upstream, until that too is replaced by the MAC address of the next device - likely either your modem or your ISP's router. So your MAC address

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Kuba Kucharski
@massimo this sounds good, although stealing creditentials/intercepting communication is most probable in the networks hidden over NAT - hence in this case it will not work. -- Kuba

[web2py] Re: mongoDb

2010-11-25 Thread Aurigadl
if imported from a module as such it dont use the native libraries (DAL, SQLFORM, etc ) and framework would be disadvantage. which is the best way to work with MongoDB?? Thanks for the answer

[web2py] Anyone willing to help out with Paypal

2010-11-25 Thread Andrew Evans
Hello just wondering if there is anyone out there willing to help out with Paypal integration in a new system I am building. Its a subscription based service that allows (should allow) users to sell digital goods by paypal. The subscription part will also be handled by paypal :D If some one is

[web2py] Re: Foreign Key

2010-11-25 Thread mdipierro
good points. Could you elaborate on what you'd expect from 2) join expressions aren't automatically created based on the DAL definition Massimo On Nov 25, 9:48 am, Mirek Zvolský zvol...@seznam.cz wrote: I think in relational databases (=in standard database world) foreign key always should

[web2py] Re: T with variables

2010-11-25 Thread Carlos
Hi, Please let me know if the following makes sense: I want to implement internationalization using always keys (codes) for all T() occurrences, instead of using strings corresponding to one specific default language. I believe this is necessary (please correct me if I'm wrong) in the following

[web2py] Anyone with experience developing Facebook IFrame app using Web2Py?

2010-11-25 Thread Narendran
Hello, I am in the process of developing a Facebook IFrame app using Web2Py. If there is someone who's done this before, I'd like to get some guidance regarding, 1. What is better to do? Login using Javascript, or using Web2py auth? 2. Any other things to consider/look at specific to FB + Web2Py?

[web2py] Re: T with variables

2010-11-25 Thread mdipierro
This is a good idea. All you need to do is: T.current_languages=[] in this way even english will require translation. Massimo On Nov 25, 11:30 am, Carlos carlosgali...@gmail.com wrote: Hi, Please let me know if the following makes sense: I want to implement internationalization using

[web2py] Re: T with variables

2010-11-25 Thread Carlos
Thanks Massimo. Btw is it possible to update the language files via web apps with authorization (e.g. userA can only update english, userB only spanish, and so on)?. Carlos On Nov 25, 11:33 am, mdipierro mdipie...@cs.depaul.edu wrote: This is a good idea. All you need to do is:

Re: [web2py] Anyone willing to help out with Paypal

2010-11-25 Thread Bruno Rocha
I am implementing PayPal for a animal charity project (natalanimal.com.br), now this project is receiving donations by PagSeguro (the bigger pay gateway of Brazil), but we started to receive international donations, so I am working on PayPal integrations right now. If I got success on

[web2py] Re: Foreign Key

2010-11-25 Thread DenesL
@Johann you missed this in the book Note that currently this is only available for DB2, MS-SQL, Ingres and Informix, but others can be easily added. but even if Postgres was supported you still could not reference regular tables from keyed ones and viceversa, as specified in

[web2py] Re: how do I load a database CSV dump into GAE?

2010-11-25 Thread olifante
thanks guys for all the info. I'm finding the video from Google I/O 2010 to be quite informative: http://www.youtube.com/watch?v=4XBqdu8dYE8

[web2py] Re: French Speakers Group

2010-11-25 Thread lannick
Hi, We have change the Group name to include all the francophonie (fr- fr, fr-ca, ...) The new name is web2py-fr and the link is : http://groups.google.com/group/web2py-fr Regards, Lannick On 16 nov, 23:07, mart msenecal...@gmail.com wrote: Salut Lannick! We have language differences? just

[web2py] Re: one more security feature in trunk

2010-11-25 Thread Niphlod
still there are no counter-indication a session sticks to one single ip. users of LAN (me and my brother) hidden by NAT, users of large WANs like Fastweb in Italy (and quite everyone in China, I believe) show themself to the webserver with the same IP address in the same session. As long as

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Michele Comitini
So security is fake in large NATted networks? 2010/11/25 Niphlod niph...@gmail.com: still there are no counter-indication a session sticks to one single ip. users of LAN (me and my brother) hidden by NAT, users of large WANs like Fastweb in Italy (and quite everyone in China, I

Re: [web2py] Anyone willing to help out with Paypal

2010-11-25 Thread Branko Vukelic
Is this usable? http://code.google.com/p/pypaypal/ On Thu, Nov 25, 2010 at 8:03 PM, Bruno Rocha rochacbr...@gmail.com wrote: I am implementing PayPal for a animal charity project (natalanimal.com.br), now this project is receiving donations by PagSeguro (the bigger pay gateway of Brazil), but

Re: [web2py] Anyone willing to help out with Paypal

2010-11-25 Thread Andrew Evans
Hey ty Bruno my project isn't quite ready to use paypal yet anyway, getting closer though.. let me know your success *cheers Branko do you mean is it usable on my site for setting up I see no reason why not :D Thanks for the replies

[web2py] Re: one more security feature in trunk

2010-11-25 Thread guruyaya
I think you missed on this paticular scenerio. If I can sniff the traffic, I must have access to the router that holds the data. That means, I'm on a place in the routing table, that gets this packet, and that means I can make my IP be the same as the user in the far end of the communication. So,

Re: [web2py] Anyone willing to help out with Paypal

2010-11-25 Thread Branko Vukelic
On Thu, Nov 25, 2010 at 10:22 PM, Andrew Evans randra...@gmail.com wrote: Branko do you mean is it usable on my site for setting up I see no reason why not :D Both. I might need it one day. :) Tell us how it went if you go with the library. -- Branko Vukelić bg.bra...@gmail.com

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Kuba Kucharski
@michele yeap, IP-based security sucks.

[web2py] RE: Possible BUG: Hidden fields in SQLFORM with custom render template

2010-11-25 Thread Josh Jaques
Hey guys, I looked into this a little more. The problem seems to be that self.custom.begin and self.custom.end are computed as soon as the form is initialized, and the hidden fields get appended to self.custom.end only in the call to accepts. For this same reason, I was also having problems

[web2py] library of images and videos

2010-11-25 Thread Carlos
Hi, For my project, I will need to create a library of images and videos. What considerations should I have?. For reference ... How to automatically create a thumbnail for every image?. Is there support for image/video galleries or albums?. With respect to videos, should I let users upload

[web2py] Re: Anyone willing to help out with Paypal

2010-11-25 Thread mdmcginn
I will pay another $200 US if someone develops a PayPal plugin/module for web2py that doesn't have to be described by the words Experimental or Needs work. On Nov 25, 1:03 pm, Bruno Rocha rochacbr...@gmail.com wrote: I am implementing PayPal for a animal charity project (natalanimal.com.br),

Re: [web2py] Re: Anyone willing to help out with Paypal

2010-11-25 Thread Andrew Evans
hey thats good thinking.. To be honest I thought initially to have a vote for this project and make a donation to the developer to create it... PayPal module for web2py I mean Wonder if its to late to do something like that basically my idea was people would commit to paying x amount if the

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Phyo Arkar
Most of them time i use a Remote VPN to change my IP and to access Unrestricted Internet. Coz internet here is very restrictive, (so restrictive that even google Blogger is banned lol) . And only about 5 outgoing ips thats goes out of this country. VPN sometimes loose connection and drops me

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Phyo Arkar
stealing cookie do not need to sniff session at all. Just a good ole XSS will work. On Fri, Nov 26, 2010 at 3:53 AM, guruyaya guruy...@gmail.com wrote: If I can sniff the traffic, I must have access to the router that

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Phyo Arkar
Even mac address can be captured by a java applet. Self signed java applet can do the trick. It can raised to User's security level , and can run system commands if he is Administrator level or root. On Thu, Nov 25, 2010 at 11:05 PM, mdipierro mdipie...@cs.depaul.edu wrote: web2py cannot access

Re: [web2py] Re: one more security feature in trunk

2010-11-25 Thread Phyo Arkar
My country (Burma) ISP alos changes outgoing IP regularly. it have about 5 ips for me. On Fri, Nov 26, 2010 at 3:19 AM, Niphlod niph...@gmail.com wrote: still there are no counter-indication a session sticks to one single ip. users of LAN (me and my brother) hidden by NAT, users of large

[web2py] Is there a limit for sum() expression in DAL/Postgre or it is a bug?

2010-11-25 Thread Bruno Rocha
Hi, I was using sum() to calculate the amount of donations received in ( http://natalanimal.com.br/init/default/extrato), but I've found a limit problem, I don't know if it is a PostgreSQL limit or sum() expression limit. * * *#FIRST WAY, USING SUM()* In my model I have a field

Re: [web2py] library of images and videos

2010-11-25 Thread Phyo Arkar
How to automatically create a thumbnail for every image?. ffmpeg ffmpeg -itsoffset -4 -i test.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg On Fri, Nov 26, 2010 at 6:13 AM, Carlos carlosgali...@gmail.com wrote: How to automatically create a thumbnail for every image?.

Re: [web2py] library of images and videos

2010-11-25 Thread Bruno Rocha
Make thumbs with PIL http://www.web2pyslices.com/main/slices/take_slice/62 (I did not test yet, I am going to do that tomorrow) 2010/11/25 Carlos carlosgali...@gmail.com Hi, For my project, I will need to create a library of images and videos. What considerations should I have?. For

Re: [web2py] library of images and videos

2010-11-25 Thread Phyo Arkar
Does it work for many kind of video files like ffmpeg? On Fri, Nov 26, 2010 at 8:34 AM, Bruno Rocha rochacbr...@gmail.com wrote: Make thumbs with PIL http://www.web2pyslices.com/main/slices/take_slice/62 (I did not test yet, I am going to do that tomorrow) 2010/11/25 Carlos

Re: [web2py] library of images and videos

2010-11-25 Thread Phyo Arkar
PIL is for images only afaik On Fri, Nov 26, 2010 at 8:47 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: Does it work for many kind of video files like ffmpeg? On Fri, Nov 26, 2010 at 8:34 AM, Bruno Rocha rochacbr...@gmail.comwrote: Make thumbs with PIL

Re: [web2py] library of images and videos

2010-11-25 Thread Bruno Rocha
No, PIL just deals with image files. 2010/11/26 Phyo Arkar phyo.arkarl...@gmail.com Does it work for many kind of video files like ffmpeg? On Fri, Nov 26, 2010 at 8:34 AM, Bruno Rocha rochacbr...@gmail.comwrote: Make thumbs with PIL http://www.web2pyslices.com/main/slices/take_slice/62

[web2py] Re: T with variables

2010-11-25 Thread mdipierro
yes. Make a custom auth_user table with an extra 'language' field and then do if auth.user: T.set_current_language(auth.user.language) On Nov 25, 12:06 pm, Carlos carlosgali...@gmail.com wrote: Thanks Massimo. Btw is it possible to update the language files via web apps with authorization

[web2py] Re: Possible BUG: Hidden fields in SQLFORM with custom render template

2010-11-25 Thread mdipierro
I like this. I will give some thought to it and this should be probably be made the default web2py behavior. Any objection? On Nov 25, 4:49 pm, Josh Jaques jjaq...@seccuris.com wrote: Hey guys, I looked into this a little more. The problem seems to be that self.custom.begin and

[web2py] Re: Anyone willing to help out with Paypal

2010-11-25 Thread mdipierro
Which features do people need? simple payment button? submission of shopping chart? digital content? handling for tax computations and shipping costs? receive paypal notification (like the user has canceled a payment)? Some things are easier than others. Some things may require a tight

[web2py] Re: one more security feature in trunk

2010-11-25 Thread mdipierro
True. This is a counterindication. On Nov 25, 7:14 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: Most of them time i use a Remote VPN to change my IP and to access Unrestricted Internet. Coz internet here is very restrictive, (so restrictive that even google Blogger is banned lol) . And

[web2py] Re: Is there a limit for sum() expression in DAL/Postgre or it is a bug?

2010-11-25 Thread mdipierro
Pint the generated SQL print db(db.donation.id0)._select(sum) try execute the same command from pgsql shell. What do you get? Massimo On Nov 25, 7:41 pm, Bruno Rocha rochacbr...@gmail.com wrote: Hi, I was using sum() to calculate the amount of donations received in

[web2py] format problem, please help

2010-11-25 Thread ramazotto
Hi, I have a problem with displaying a table id as a dropdown list in a form. Database looks like that: db.define_table('target', Field('name', required=True), Field('address', required=True), Field('comment', default=''), format='%(name)s') db.define_table('pac', Field('name',

[web2py] Re: format problem, please help

2010-11-25 Thread mdipierro
If you just do this it should do what you ask: db.define_table('target', Field('name', required=True), Field('address', required=True), Field('comment', default=''), format='%(name)s') db.define_table('pac', Field('name', required=True), Field('comment', default=''),

  1   2   >