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
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;
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/
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
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
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
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
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
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
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
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
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
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.
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>> 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
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
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
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
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
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
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
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
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
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.
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
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
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
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_
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_
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
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:
>
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
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
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
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
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
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
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
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
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
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
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
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.
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
>
>
>
>
>
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
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
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.
>>
>>
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
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:
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
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
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
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
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
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
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/
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
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
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
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
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?
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
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.
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
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.
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
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
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
87 matches
Mail list logo