[web2py:37646] How to limit access to items in static?

2009-12-22 Thread Johann Spies
I use static inter alia for a few static html-pages linked to items in a wiki. Access to the wiki is limited to logged in users but if the url to the file in static is known it can be used to bypass those controls. How do I protect it? Regards Johann -- You received this message because you ar

[web2py:37647] nginx + web2py T3 application

2009-12-22 Thread shuval
http://istt-nsk.ru csstemplate in freecsstemplates.org spontaneous. I managed site T3 application. Database is Fiebird ( I changed in controllers/default.py and modules/t2.py field password to passwordq). nginx.conf server { listen istt-nsk.ru:80; server_name istt-nsk.ru;

[web2py:37648] Re: Sitemap Plugin or Sitemap Generator

2009-12-22 Thread Benigno
Actually, if you have anything dynamic (say you have a blog, you may have as many pages as posts, plus as many pages as categories or tags or whatever and that may not reflect on your meny). I think it may be easier to try to implement it, using something like BeautifulSoup http://pypi.python.org/

[web2py:37649] Re: unable to find mod_whitebeam module

2009-12-22 Thread haftish21
Dear Thaudeus, Sure, this is not a web2py issue. But, I'm considering whitebeam in line with web2py to add some functionality which are far beyond web2py. I'm using windows vista os. cheers!!! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To

Re: [web2py:37650] Re: LOAD function anybody?

2009-12-22 Thread Nicol van der Merwe
This is indeed very awesome :) On Tue, Dec 22, 2009 at 9:55 AM, Hillman wrote: > This is awesome! I wish I would have been aware of this sooner. > > Nice work, very well executed. > > On Dec 18, 8:19 pm, mdipierro wrote: > > http://www.web2py.com/AlterEgo/default/show/252 > > -- > > You receive

[web2py:37651] Re: nginx + web2py T3 application

2009-12-22 Thread Ahmed Soliman
Do you know how to configure nginx to expose the admin interface through https? On Dec 22, 10:35 am, shuval wrote: > http://istt-nsk.ru csstemplate in freecsstemplates.org spontaneous. I > managed site T3 application. Database is Fiebird ( I changed in > controllers/default.py and modules/t2.py f

[web2py:37652] Re: nginx + web2py T3 application

2009-12-22 Thread Mengu
thank you. i guess this is very good. have you made any benchmark on this? On Dec 22, 10:35 am, shuval wrote: > http://istt-nsk.ru csstemplate in freecsstemplates.org spontaneous. I > managed site T3 application. Database is Fiebird ( I changed in > controllers/default.py and modules/t2.py field

[web2py:37653] Re: LOAD function anybody?

2009-12-22 Thread selecta
Is it possible to tell the LOAD function to also load all GET request into its on div, so far i can only get POST request to refresh just the div? for now i exchange every a tag with a FORM(INPUT(... On Dec 22, 10:57 am, Nicol van der Merwe wrote: > This is indeed very awesome :) > > > > > > On T

[web2py:37654] Markdown syntax for tables?

2009-12-22 Thread Johann Spies
According to what I understand from the Markdown documentation the following should produce a table in a wiki page: | Rekenaar | IP adres | Eienaar | | - | | | | computer1.com

[web2py:37655] Re: A simple patch to provide upload progress

2009-12-22 Thread stefan
Hi all, I've got the upload progress bar working based on the example on web2pyslices, but it only works with web2py in standalone mode. I can't get it work when I use web2py with apache via mod_wsgi. The lookup in the cache always returns 0 then. Has anyone tried this (successfully)? Best regar

[web2py:37656] Re: starting web2py in the foreground for debugging

2009-12-22 Thread jep
Massimo, Tnx for replying. > You can find requests logged in httpserver.log > What kind of logs would you like to see? > > Massimo Basically, having a plain text version of the logs that are now send to the tickets in one big long file would be a nice start. The tickets are great, but during de

[web2py:37657] Re: LOAD function anybody?

2009-12-22 Thread DL
how does the LOAD(plugin) function compare with using the {{include 'file.html'}}? Was this solely added to enable the ajax/ajax_trap in- page-update functionality? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send ema

[web2py:37658] Re: How to connect to Oracle table with dot and 'at' in the name?

2009-12-22 Thread mdipierro
No. "." and "@" are not allowed in table names. Can you alias in Orcale? On Dec 22, 12:15 am, Alexey Nezhdanov wrote: > Hello. > I've googled this group for my problem, but didn't find the answer. > It seems that problem was mentioned once [1] [2], but I do not know if any > solution was done. >

[web2py:37659] Re: starting web2py in the foreground for debugging

2009-12-22 Thread mdipierro
Hi Jep, create a file routes.py and in it routes_onerror=[('*/*','/logging/default/index')] and the create an app "logging" with a "controllers/default.py" that does the following: from gluon.admin import * def index(): from restricted import RestrictedError app, ticket_id = request.va

[web2py:37660] Re: Delete File

2009-12-22 Thread Yarko Tymciurak
On Dec 22, 12:28 am, Thadeus Burgess wrote: > I just figured that would be default behavior... why would I have a file on > my system with absolutely no references to them anymore? And no "easy" way > to get those references back? (except from backups, but uploads probably > would go into the arch

[web2py:37661] Re: LOAD function anybody?

2009-12-22 Thread mdipierro
You would have to rewrite some of the code in web2py_ajax.html. It is not difficult but I would have to think about it. I do not thing the behavior would be very intuitive. On Dec 22, 6:09 am, selecta wrote: > Is it possible to tell the LOAD function to also load all GET request > into its on div

[web2py:37662] Re: LOAD function anybody?

2009-12-22 Thread mdipierro
even if ajax=False, ajax_trap=False it is still very different from {{include...}}. In the former case is in including another action (with its own request, response, etc), in the latter case it is including a view (same request, response, etc as main page). On Dec 22, 6:47 am, DL wrote: > how do

[web2py:37663] Re: LOAD function anybody?

2009-12-22 Thread DenesL
Massimo, could you document/explain all the options of LOAD (i.e. finish alterego 252)? I know they may be on the video but for reference purposes it would be great to have them written down. It also makes them readily available for the next book ;) Thanks, Denes. -- You received this message

[web2py:37664] Re: bug in recent versions of web2py related to unicode encoding in mail()

2009-12-22 Thread hamdy.a.farag
Hi there I'd the same problem I couldn't send arabic messages whatever I did and the encoding='utf-8' option seems also not working I tried all the above tricks but invain then I tried to convert both subject and message to utf-8 so I did it for subjet : subject = unicode(form.vars.subject) an

[web2py:37665] Re: Sitemap Plugin or Sitemap Generator

2009-12-22 Thread Leandro - ProfessionalIT
Well, I'm trying implement this script(http://toncar.cz/opensource/ sitemap_gen.html) and integrate it how a plugin or use the cron to auto-generate the sitemap.xml file. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, sen

Re: [web2py:37667] Re: How to connect to Oracle table with dot and 'at' in the name?

2009-12-22 Thread Alexey Nezhdanov
Sorry for double posting. While this would be an ideal - it is clearly not supported atm. But may be I can somehow emulate it by, say, initialising table with the usual way and then doing something like db.inet.var1.var2='rad@inet' ? If there is any coding needed - that's ok too, I can submit a

Re: [web2py:37666] Re: How to connect to Oracle table with dot and 'at' in the name?

2009-12-22 Thread Alexey Nezhdanov
I do not know actually as I am not the Oracle expert (or even regular user). Will find out tomorrow. Suppose - I can't - can you give any clue how to make an alias in web2py? The ideal would be something like this: db.define_table('inet', internal_name='rad@inet', Field('ip','string',leng

[web2py:37668] Looking for simple Javascript JSON-RPC call to web2py server

2009-12-22 Thread MrGrieves
Hello, I'm just getting started with web2py. I'm very interested in the json- rpc functionality. The documentation seems clear for the web2py side of things (http:// www.web2py.com/examples/static/epydoc/web2py.gluon.tools.Service-class.html). I haven't however been able to successfully connect

[web2py:37669] Re: How to connect to Oracle table with dot and 'at' in the name?

2009-12-22 Thread mdipierro
The new DAL will allow this. I am working on it but it is a complex thing and I do not know for sure when it will be done. I hope in one month. I cannot take a patch to do this in the current DAL because it would break a lot of stuff. Sorry. There must be a way to define an alias (or a view) in Or

[web2py:37670] Re: Markdown syntax for tables?

2009-12-22 Thread villas
Hi Johann I don't believe that 'tables' are implemented in the version that Web2py uses: python-markdown2. See the 'todo' list: http://python-markdown2.googlecode.com/svn/trunk/TODO.txt It may be advantageous for Web2py to change to this version in future: http://www.freewisdom.org/projects/pyt

Re: [web2py:37671] Re: Delete File

2009-12-22 Thread Thadeus Burgess
Nope doesn't. It's not like I'm going to be putting any files not related to the database uploads in the uploads folder... and even IF I did, the database would only delete the related files, not everything in the folder that wasn't linked... It does provide some interesting options though, instea

Re: [web2py:37672] Re: Markdown syntax for tables?

2009-12-22 Thread Thadeus Burgess
I have suggested python-markdown as well. Massimo is rewriting his own markdown that takes advantage of web2py tag elements. Nothing is stopping you from using python-markdown in your project though, I am using it currently because of the extra features. :) -Thadeus On Tue, Dec 22, 2009 at 1

[web2py:37673] Re: Markdown syntax for tables?

2009-12-22 Thread mdipierro
The problem with python-markdown is that it requires elementtree and it does not come with python 2.4. It would break some apps that run under 2.4. Massimo On Dec 22, 12:09 pm, Thadeus Burgess wrote: > I have suggested python-markdown as well. > > Massimo is rewriting his own markdown that takes

[web2py:37674] Re: Markdown syntax for tables?

2009-12-22 Thread Massimo Di Pierro
This is what I have so far. It is not really a priority of mine. Implementing tables may be beyond what I was planning to do. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsub

[web2py:37675] Re: Delete File

2009-12-22 Thread mdipierro
Before you do: db(my_super_awesome_cleaning_query).delete() you can do: db.yourtable.youruploadfield.autodelete=True You can also set autodelete=True in Field(...,autodelete=True). It does exactly what you asked. Massimo On Dec 21, 10:57 pm, Thadeus Burgess wrote: > If I am deleting an

[web2py:37676] Re: Looking for simple Javascript JSON-RPC call to web2py server

2009-12-22 Thread mdipierro
Can you show us an example of controller and how you call the JSON- RPC? Massimo On Dec 22, 9:12 am, MrGrieves wrote: > Hello, > > I'm just getting started with web2py.  I'm very interested in the json- > rpc functionality. > > The documentation seems clear for the web2py side of things > (http

[web2py:37677] Re: bug in recent versions of web2py related to unicode encoding in mail()

2009-12-22 Thread mdipierro
I suggest this change instead and I will put it in trunk from: if isinstance(text, str): to: if isinstance(text, (str,unicode)): On Dec 22, 9:43 am, "hamdy.a.farag" wrote: > Hi there > > I'd the same problem > > I couldn't send arabic messages whatever I did and the > encoding='utf-8'  option see

Re: [web2py:37678] nginx + web2py T3 application

2009-12-22 Thread Alex Fanjul
Do you use Nginx with Apache or only Nginx? I tried to manage Nginx (as frontend for statics files) + Apache (for python) without success yet. Alex F El 22/12/2009 9:35, shuval escribió: > http://istt-nsk.ru csstemplate in freecsstemplates.org spontaneous. I > managed site T3 application. Databa

[web2py:37679] Re: How to limit get_twits function?

2009-12-22 Thread villas
>> def get_twits(): Just for fun... Definitions: Get_Twits = Obtain fools or idiots Get_Tweets = Obtain micro-blog posts (of less than 140 chars) Conclusion: as you managed to attract a reply from me, your chosen function name is indeed correct!! Best wishes, -David On Dec 20, 8:28 pm, T

[web2py:37680] UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread v
Hi Massimo, First of all, thanks for creating web2py.. AMAZING work!! Highly intuitive and almost flat learning curve, compared with RoR and Django. I was trying the mywiki example from the web2py manual and while the documents upload/download worked fine locally with SQLite, it doesn't quite wor

[web2py:37681] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread mdipierro
Thank you v. Are you sure the problem is the file content and not the file name or the file size? Which verison of web2py do you have? I any case, can you post the complete traceback? Massimo On Dec 22, 2:01 pm, v wrote: > Hi Massimo, > > First of all, thanks for creating web2py.. AMAZING work

[web2py:37682] Re: Delete File

2009-12-22 Thread Yarko Tymciurak
On Dec 22, 12:07 pm, Thadeus Burgess wrote: > > It does provide some interesting options though, instead of deleting files > when the record gets deleted, you could queue up file names for deletion, > and then delete them with a cron, that way the disk only gets hit once > during the night fo

Re: [web2py:37345] Re: Delete File

2009-12-22 Thread Thadeus Burgess
yes (...,autodelete=True) does exactly what I want. I was just confused as why the only mention of the matter is never paired with mentions of upload fields. As Yarko pointed out, autodelete is located in the migrations section of the book, and not anywhere else upload fields are discussed. -Thade

[web2py:37684] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread v
Hi Massimo, Thanks for your prompt response. I tried uploading multiple binary files (image, pdf, etc.) and it's consistently the case. I'm using latest web2py (downloaded few hours back): 1.74.3. File name are pure ascii, so I don't see any issues there. File sizes have been from 32KB to abou

[web2py:37685] Re: Virtualfields to make a running total

2009-12-22 Thread Francois (Jersey)
Many thanks David, I was focusing on financial instruments accounting, but I included basic invoicing. Happy to share on the internet, based on a simpler version. Once we have a good basis, then we could make a more complex model. Starting to be pretty good on ERP :;) Can you contact me directly

[web2py:37348] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread mdipierro
It is a bug but I need to think about this. For now edit sql.py and remove these lines (2997-2998): if isinstance(value, str): value = value.decode(db._db_codec) Sorry about this. Massimo On Dec 22, 2:26 pm, v wrote: > Hi Massimo, > > Thanks for your prompt

Re: [web2py:37687] Re: Markdown syntax for tables?

2009-12-22 Thread Thadeus Burgess
I think it would be great, for something that is super simple, and fast. We should still include at least python-markdown2, just since it would give the option to provide more functionality. -Thadeus On Tue, Dec 22, 2009 at 1:24 PM, Massimo Di Pierro wrote: > This is what I have so far. It i

[web2py:37688] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread mdipierro
I may have fixed it in trunk. Could you please try it? On Dec 22, 2:26 pm, v wrote: > Hi Massimo, > > Thanks for your prompt response. > > I tried uploading multiple binary files (image, pdf, etc.) and it's > consistently the case.  I'm using latest web2py (downloaded few hours > back): 1.74.3.

[web2py:37689] Re: bug in recent versions of web2py related to unicode encoding in mail()

2009-12-22 Thread hamdy.a.farag
thanks mdipierro I've a small comment on this, which I forgot to say last time in the regular [classic] case using something like : mail.send(to=., subject= form.vars.subject, message=form.vars.message) when sending arabic characters via subject and body this caused an exception on windows

[web2py:37690] SQLite to Postgress

2009-12-22 Thread Adolfo
Hello I've been working with sqlite for develpment but now that i have finish with my app id like to use postgress. So i'd like to know if someone know a simple way of migrating the data in my Sqlite database to the one in Postgress. Thanks Adolfo -- You received this message because you are s

Re: [web2py:37691] SQLite to Postgress

2009-12-22 Thread Thadeus Burgess
db.export_to_csv_file(open('/path/to/my/file.txt', 'w')) and then when you switch your DAL over... db.import_from_csv_file(open('/path/to/myfile.txt', 'r')) -Thadeus On Tue, Dec 22, 2009 at 3:07 PM, Adolfo wrote: > Hello > > I've been working with sqlite for develpment but now that i have

[web2py:37692] Re: SQLite to Postgress

2009-12-22 Thread Adolfo
im trying that but it doesnt works maybe im doing something wrong. Ive also tried this but in both cases web2py doesnt create any files. db.export_to_csv_file(open('db.csv','wb')) db.import_from_csv_file(open('db.csv','rb')) db.commit() On 22 dic, 16:16, Thadeus Burgess wrote: > db.export_to_

[web2py:37693] Re: SQLite to Postgress

2009-12-22 Thread Adolfo
it works know but it only creates a very small file 1kb On 22 dic, 16:24, Adolfo wrote: > im trying that but it doesnt works maybe im doing something wrong. > > Ive also tried this but in both cases web2py doesnt create any files. > > db.export_to_csv_file(open('db.csv','wb')) > > db.import_from_

[web2py:37694] Re: How to limit access to items in static?

2009-12-22 Thread Vidul Petrov
Hi Johann, Take a look for examples in "routes.example.py". The file is in the root directory. On Dec 22, 10:26 am, Johann Spies wrote: > I use static inter alia for a few static html-pages linked to items in > a wiki. Access to the wiki is limited to logged in users but if the > url to the fil

[web2py:37695] Re: SQLite to Postgress

2009-12-22 Thread Adolfo
Now it works fine, i just put those lines at the bottom of db.py and worked fine but i have problems with the images, the data moved fine but now i cant see any images On 22 dic, 16:28, Adolfo wrote: > it works know but it only creates a very small file 1kb > > On 22 dic, 16:24, Adolfo wrote: >

[web2py:37696] Re: How to limit access to items in static?

2009-12-22 Thread mdipierro
You can use routes but the rule is: - if it is public goes in static - if it requires access control goes in uploads On Dec 22, 3:29 pm, Vidul Petrov wrote: > Hi Johann, > > Take a look for examples in "routes.example.py". > The file is in the root directory. > > On Dec 22, 10:26 am, Johann Spies

[web2py:37697] Re: bug in recent versions of web2py related to unicode encoding in mail()

2009-12-22 Thread mdipierro
There is a fix in trunk. can you give it a try? On Dec 22, 3:07 pm, "hamdy.a.farag" wrote: > thanks mdipierro > > I've a small comment on this, which  I forgot to say last time > > in the regular [classic] case using something like : > > mail.send(to=., subject= form.vars.subject, > message=f

[web2py:37698] Re: bug in recent versions of web2py related to unicode encoding in mail()

2009-12-22 Thread mdipierro
Can you please check the version in trunk? I just added a patch from Mateusz that fixes these problems. On Dec 22, 3:07 pm, "hamdy.a.farag" wrote: > thanks mdipierro > > I've a small comment on this, which  I forgot to say last time > > in the regular [classic] case using something like : > > mai

[web2py:37699] stats

2009-12-22 Thread mdipierro
Last week downloads (no double counting, only downloads from web2py, not including from bzr/hg): 14/Dec/2009 157 15/Dec/2009 138 16/Dec/2009 122 17/Dec/2009 123 18/Dec/2009 141 19/Dec/2009 267 20/Dec/2009 265 21/Dec/2009 289 Total distinct visitors: 14/Dec/2009 1273 15/Dec/2009 1232 16/Dec/2009 1

[web2py:37700] Re: Sitemap Plugin or Sitemap Generator

2009-12-22 Thread Richard
For a website with many dynamic URLs based on request.vars / request.args then you will need to crawl + scrape it. But for a more static layout I would prefer an internal web2py solution to scraping, so that the sitemap updates automatically when you add new functions / controllers. So is there a

[web2py:37701] Web2py and MongoDB

2009-12-22 Thread Pystar
This question has been asked before, but I would like to know the extent of support that Web2py's DAL has for MongoDB. I stumbled on it, and I am finding it very interesting and innovative, but will like to try it with Web2py. -- You received this message because you are subscribed to the Google

[web2py:37702] Re: Sitemap Plugin or Sitemap Generator

2009-12-22 Thread mr.freeze
This may help: http://www.web2pyslices.com/main/slices/take_slice/3 On Dec 22, 4:28 pm, Richard wrote: > For a website with many dynamic URLs based on request.vars / > request.args then you will need to crawl + scrape it. But for a more > static layout I would prefer an internal web2py solution

Re: [web2py:37703] Web2py and MongoDB

2009-12-22 Thread Thadeus Burgess
The DAL is being rewritten, and MongoDB is one of the new back ends that web2py will support. It will be about another month and a half before it is ready. -Thadeus On Tue, Dec 22, 2009 at 4:47 PM, Pystar wrote: > This question has been asked before, but I would like to know the > extent of

Re: [web2py:37704] Re: SQLite to Postgress

2009-12-22 Thread Thadeus Burgess
You will need to move your uploads folder over manually. -Thadeus On Tue, Dec 22, 2009 at 3:37 PM, Adolfo wrote: > Now it works fine, i just put those lines at the bottom of db.py and > worked fine but i have problems with the images, the data moved fine > but now i cant see any images > > O

[web2py:37705] Re: LOAD function anybody?

2009-12-22 Thread selecta
when i use a submit button of type "submit" to submit the form the refresh works fine, but if i use a submit button of type "image" the whole page reloads, can u please change that behaviour, image buttons are just so much nicer On Dec 19, 4:19 am, mdipierro wrote: > http://www.web2py.com/AlterEg

[web2py:37706] Re: LOAD function anybody?

2009-12-22 Thread mdipierro
Can you run a test for me? Edit web2py_ajax.html and replace this line: jQuery('input[type="submit"]',this).click(function() with this line: jQuery(':submit',this).click(function() does it do what you ask? Massimo On Dec 22, 5:34 pm, selecta wrote: > when i use a submit button of type "subm

[web2py:37707] mercurial HELP!

2009-12-22 Thread mdipierro
I have this in my .hg/hgrc [paths] default = https://web2py.googlecode.com/hg/ default-push = https://web2py.googlecode.com/hg/ [auth] default.prefix = https://web2py.googlecode.com/hg/ default.username = mdipie...@cs.depaul.edu default.password = default-push.prefix = https://web2py.googlecode.

Re: [web2py:37708] Web2py and MongoDB

2009-12-22 Thread Alex Fanjul
You are not the only one Pystar!! I'm impatient too!! :-D Alex F El 23/12/2009 0:11, Thadeus Burgess escribió: > The DAL is being rewritten, and MongoDB is one of the new back ends > that web2py will support. It will be about another month and a half > before it is ready. > > -Thadeus > > > > >

Re: [web2py:37709] mercurial HELP!

2009-12-22 Thread Thadeus Burgess
You need to include the username/password as an in-line to the URL. default = https://:@web2py.googlecode.com/hg/ so... https://mdipierro:s343...@web2py.googlecode.com/hg/ -Thadeus On Tue, Dec 22, 2009 at 5:46 PM, mdipierro wrote: > I have this in my .hg/hgrc > > [paths] > default = https

[web2py:37710] Re: mercurial HELP!

2009-12-22 Thread mdipierro
does not work gives me an error because the username is my email address and contains @. On Dec 22, 5:59 pm, Thadeus Burgess wrote: > You need to include the username/password as an in-line to the URL. > > default = https://:@web2py.googlecode.com/hg/ > > so... > > https://mdipierro:s343...@web2p

Re: [web2py:37711] Re: mercurial HELP!

2009-12-22 Thread Jonathan Lundell
On Dec 22, 2009, at 4:41 PM, mdipierro wrote: > does not work gives me an error because the username is my email > address and contains @. What if you encode it as %40? > > On Dec 22, 5:59 pm, Thadeus Burgess wrote: >> You need to include the username/password as an in-line to the URL. >> >>

[web2py:37712] Re: mercurial HELP!

2009-12-22 Thread mdipierro
hg push ** unknown exception encountered, details follow ** report bug details to http://www.selenic.com/mercurial/bts ** or mercur...@selenic.com ** Mercurial Distributed SCM (version 1.2.1) ** Extensions loaded: Traceback (most recent call last): File "/usr/local/bin/hg", line 5, in pkg_re

Re: [web2py:37713] Re: mercurial HELP!

2009-12-22 Thread Jonathan Lundell
On Dec 22, 2009, at 4:59 PM, mdipierro wrote: > hg push Now *that's* unfriendly. > ** unknown exception encountered, details follow > ** report bug details to http://www.selenic.com/mercurial/bts > ** or mercur...@selenic.com > ** Mercurial Distributed SCM (version 1.2.1) > ** Extensions loaded:

Re: [web2py:37714] Twill + Web2Py

2009-12-22 Thread Alex Fanjul
Has somebody got to work with twill+web2py? (Im using Apache + mod_wsgi) I'm trying to navigate to some page and show the html in my page (return of my index controller) I'm trying that, and it's my situation: 1) Succesful importing module: I installed and used " from twill import * " 2) At firs

Re: [web2py:37715] Twill + Web2Py

2009-12-22 Thread Alex Fanjul
I'm trying with something like: twill.set_output(response.render) without luck by now. I don't know where to catch the object which render the output to views. El 23/12/2009 2:43, Alex Fanjul escribió: > Has somebody got to work with twill+web2py? (Im using Apache + mod_wsgi) > I'm trying to navi

Re: [web2py:37716] Re: mercurial HELP!

2009-12-22 Thread Thadeus Burgess
Try this. [auth] default.prefix = web2py.googlecode.com/hg/ default.username = u...@site.com default.password = default.schemes = https -Thadeus On Tue, Dec 22, 2009 at 7:11 PM, Jonathan Lundell wrote: > On Dec 22, 2009, at 4:59 PM, mdipierro wrote: > > > hg push > > Now *that's* unfriendly

[web2py:37717] Re: mercurial HELP!

2009-12-22 Thread Brian M
Hmm, just tried with a little google code project I've got and it worked fine. In my mercurial.ini file (same as .hgrc) I simply put: [auth] project.prefix = project.googlecode.com/hg project.username = myusername project.password = myprojectpassword project.schemes = https That was with my goog

[web2py:37718] Re: Web2py and MongoDB

2009-12-22 Thread Pystar
Hi Massimo, Is there anything I can do to help? I am really interested in helping getting Web2py support MongoDB. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from t

Re: [web2py:37719] Re: mercurial HELP!

2009-12-22 Thread Jonathan Lundell
On Dec 22, 2009, at 5:58 PM, Brian M wrote: > Hmm, just tried with a little google code project I've got and it > worked fine. In my mercurial.ini file (same as .hgrc) I simply put: > > [auth] > project.prefix = project.googlecode.com/hg > project.username = myusername > project.password = mypro

[web2py:37720] file progress/multifile upload

2009-12-22 Thread Wes James
Anyone worked with either of these in web2py? progress bar via apache module: http://github.com/drogus/apache-upload-progress-module progress bar with python cgi: http://development.finetooth.com/?p=11 Perl, PHP and Javascript multifile/progress bar uploader http://uber-uploader.sourceforge.net/

[web2py:37721] Re: file progress/multifile upload

2009-12-22 Thread Wes James
I meant to add, made any ports to work in web2py. the uber-uploader might be one to port to w2p... On Tue, Dec 22, 2009 at 8:52 PM, Wes James wrote: > Anyone worked with either of these in web2py? > > progress bar via apache module: > http://github.com/drogus/apache-upload-progress-module > > pr

[web2py:37722] Re: nginx + web2py T3 application

2009-12-22 Thread shuval
For Ahmed Soliman. I did not test, but i think it is not complicated. May be server { listen istt-nsk.ru:80; server_name istt-nsk.ru; access_log /var/log/nginx/ balder161.startdedicated.com.access.log; location / { set $fixed_destination $http_destin

[web2py:37723] Re: nginx + web2py T3 application

2009-12-22 Thread shuval
For Mengu. Yes of course. This is CMS. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more opt

[web2py:37724] Re: nginx + web2py T3 application

2009-12-22 Thread shuval
For Alex Fanjul. I use nginx http-server without apache. What is problem frontend for statics files? T3 application upload/download statics files. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@google

[web2py:37725] multiple forms (formset) on one page

2009-12-22 Thread Ken Pu
Hi, I would like to add/edit/delete multiple database rows on a single page. Django supports FormSet, but I can't seem to find the equivalence in web2py. The multiple form support doesn't seem to be what I need because each form has its own submit button. Do I have to implement my own Formset?

[web2py:37726] Re: bug in recent versions of web2py related to unicode encoding in mail()

2009-12-22 Thread hamdy.a.farag
sure I will do it today and give you a feed back -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. Fo

Re: [web2py:37727] Re: How to limit access to items in static?

2009-12-22 Thread Johann Spies
2009/12/22 mdipierro : > You can use routes but the rule is: > - if it is public goes in static > - if it requires access control goes in uploads Thanks for the replies. If you don't mind, I would like advice on the following situation: I need restricted access to parts of the data on my website.

Re: [web2py:37728] SQLite to Postgress

2009-12-22 Thread Jason Brower
It would be another nifty feature to automate with a google summer of code project. :D Regards, Jason On Tue, 2009-12-22 at 15:16 -0600, Thadeus Burgess wrote: > db.export_to_csv_file(open('/path/to/my/file.txt', 'w')) > > and then when you switch your DAL over... > > db.import_from_csv_file(ope

[web2py:37729] Re: nginx + web2py T3 application

2009-12-22 Thread shuval
Sorry. Site http://istt-nsk.ru did not work yesterday sometimes. I tested nginx to administrator interface web2py framework. Now Work! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com.

[web2py:37730] request headers

2009-12-22 Thread Thadeus Burgess
I am not seeing a place where you can read the request.headers, neither in the request.env or request.wsgi.environ -Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubsc

[web2py:37731] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread v
Great! both solutions work fine now. Have tested with a few binary file uploads. Using your changes in the trunk to sql.py. Thanks, V On Dec 23, 1:44 am, mdipierro wrote: > I may have fixed it in trunk. Could you please try it? > > On Dec 22, 2:26 pm, v wrote: > > > > > Hi Massimo, > > > Tha

[web2py:37732] Re: bug in recent versions of web2py related to unicode encoding in mail()

2009-12-22 Thread hamdy.a.farag
Thanks mdipierro It works very fine in both windows for internet explorer 8, firefox, chrome and for linux it worked fine on firefox I tested only arabic characters, only english characters, and mixed words between arabic and english BTW: Can you provide me for a patch for this bug so that I can