Thank you Russell! This saves me some time.
On Jun 24, 7:40 pm, Russell wrote:
> As an aside, the mixing of \\ and / is unsightly but does not seem to
> cause a problem on widows. If you want to tidy it up, it's around
> line 786 of main.py:
>
> request.folder = os.path.join(request.env.web
Yes, you can put this code in the controller. It depends on how/when
you determine the dbname
On Jun 24, 8:11 pm, Phyo Arkar wrote:
> So what i am doing is DB manager which support creating of DBs and
> also want to Define predefined set of Tables inside DB.
>
> But , as its going to be dynamic
The built-in download function can stream if it receives a range
request from the client.
On Jun 24, 3:35 pm, weheh wrote:
> Thanks! Makes sense. What method would you use to stream an mp3, ogg,
> wav ... or other audio file? Also, could you clarify what the
> "filename" argument represents -- is
actually, Russell, I don't think you want to do that...
On Jun 24, 7:40 pm, Russell wrote:
> As an aside, the mixing of \\ and / is unsightly but does not seem to
> cause a problem on widows. If you want to tidy it up, it's around
> line 786 of main.py:
>
> request.folder = os.path.join(req
So what i am doing is DB manager which support creating of DBs and
also want to Define predefined set of Tables inside DB.
But , as its going to be dynamic , it have to load DBs on the fly ,
inside controllers..
Lile this:
In Controller:
def __createCase(dbName):
import MySQLdb
newdb=M
Not to be annoying, but can you post an example?
Just to organize the things in my head...
Thanks again.
On Fri, Jun 25, 2010 at 2:41 AM, Carles Gonzalez wrote:
> Very interesting!
>
> I'll try tomorrow.
>
> Thanks a lot, Dave.
>
> On Fri, Jun 25, 2010 at 1:21 AM, dlypka wrote:
>> I've done a
Very interesting!
I'll try tomorrow.
Thanks a lot, Dave.
On Fri, Jun 25, 2010 at 1:21 AM, dlypka wrote:
> I've done a parent - to - many child GAE / web2py implementation using
> SelfReference fields (or you can use Reference as well) using the
> technique for adding native GAE fields into a w
As an aside, the mixing of \\ and / is unsightly but does not seem to
cause a problem on widows. If you want to tidy it up, it's around
line 786 of main.py:
request.folder = os.path.join(request.env.web2py_path,
'applications', request.application) + '/'
On Jun 25, 11:15 am, Y
I've done a parent - to - many child GAE / web2py implementation using
SelfReference fields (or you can use Reference as well) using the
technique for adding native GAE fields into a web2py table definition.
It gives fantastic retrieval performance because GAE automatically
adds the link from the
By the way -
The filename in the upload directory was 194 characters --- it's
entirely possible that windows was having trouble with this.
Here is the listing of my test uploads directory (the first was just
a 'normal' length file):
-rw-r--r-- 1 yarko staff 2642 Jun 24 17:33 test.file.
880c
Hi M -
So I've used you example (a little simplified):
On Jun 23, 3:15 am, Swell wrote:
> Ok
> I will post some code here to show as much as possible
>
> here is the db definition:
>
> db.define_table('papers',
> Field('title','string'),
> Field('author','string'),
> Field('file','upload')
Well I use it without any modification, but using php version, as an
independient application
Now i want integrate it as web2py component, I will show my results
here, ok?
On 19 jun, 23:36, Phyo Arkar wrote:
> Has anyone Successfully integrated elFinder into web2py?
>
> I am trying it out.
>
> On
OK feel free to ask , and if you stuck give me error message.
On Jun 24, 8:35 pm, Giuseppe Luca Scrofani
wrote:
> Please ignore my previous message (written before you replied), now I
> will try to make your suggested changes
Thanks! Makes sense. What method would you use to stream an mp3, ogg,
wav ... or other audio file? Also, could you clarify what the
"filename" argument represents -- is it the name you want the file to
be or the name of the file being input (I believe it's the latter)?
On Jun 24, 11:33 am, mdipier
Please ignore my previous message (written before you replied), now I
will try to make your suggested changes
I re-tried, managed to install extracting files in the correct folder,
but now Im stuck
"Note URL (Both in View and web2py_elcon) need to be change to your
host:port (i did with port 8080)"
Can you please explain a little more, what I've to change and where?
>From what I understand seems to edit
It is not an appliance , and not made web2pyapp yet , after you unzip it
into application folder modify view/index.html and
controller/default/web2py_elcon
in Controller:
def web2py_elcon():
cont=connector({
'root': '/home/v3ss/Downloads', # MODIFY to file folder path of your
upload/
I've added session.unlock to each of the functions and it seems stable
except under one condition and that is if I'm accidentally double
click the submit button.
I'm using MySQL as the backend.
The first function (bg_quick_dvd()) got executed and it returns the
value but the following just times
This needs to be investigated. I think it may be a problem with
fcgi.py, not with web2py itself. Anywya, let's rule out problems with
session locking. Try add
session.unlock()
to those actions called via ajax that do not write session variables.
Do you still get the problem?
Do you use sqlite?
On Jun 24, 12:11 pm, Deepan wrote:
> Hi,
>
> I am having an error in web2py app. I am not able to figure out what
> is causing the error. It would be of great help if any can figure out
> the error and let me know.
>
> Error is as follows:
>
> Traceback (most recent call last):
> File "/cube/ap
db.define_table(Field('university', length=128,default=''),)
is missing tablename
db.define_table('tablename',Field('university',
length=128,default=''),)
so it thinks the Field(..) is a tablename.
On Jun 24, 12:11 pm, Deepan wrote:
> Hi,
>
> I am having an error in web2py app. I am not able t
Got it. I will look into creating such option. The issue is to make it
general enough
On Jun 24, 12:06 pm, NickFranceschina
wrote:
> yes that's what I'm saying... there must be some code in Web2py where
> if the field is 'upload' and you're running on GAE, then it triggers
> creation of the blob
Hi,
I am having an error in web2py app. I am not able to figure out what
is causing the error. It would be of great help if any can figure out
the error and let me know.
Error is as follows:
Traceback (most recent call last):
File "/cube/apps/web2py/gluon/restricted.py", line 178, in
restrict
Dear List,
the ajax based background search crashes my web2py installation. It's
version 1.77.3 and I'm using the fcgihandler to access the
application. OS: OpenBSD 4.6, Python version is Python 2.5.4
(r254:67916, Oct 19 2009, 01:52:14).
As You can see below the search makes three database querie
yes that's what I'm saying... there must be some code in Web2py where
if the field is 'upload' and you're running on GAE, then it triggers
creation of the blob field... but probably shouldn't create the blob
in the same table, since on GAE there is no way to NOT load the blob
(it always loads the e
I do not know if that is possible
On Jun 24, 10:22 am, Jose wrote:
> Hi,
>
> How can I change the encoding of the files edited with the editor's
> own web2py?
>
> Rgards,
> Jose
If you apply access control to your files, than they are referenced by
the database. In this case you should use the
db.table.field.store(stream,filename) method to store the stream into
uploads. If there is no access control put it in static.
On Jun 24, 10:14 am, weheh wrote:
> So where would I
You cannot but if you do
ajax('func1', ['id1'], ':eval')
it will interpret the returned page as json and evaluate it. id If you
return 'null' or '', it should work as expected and not raise any
error.
On Jun 24, 9:47 am, ilovesss2004 wrote:
> Hi,
> I use the ajax function as follows:
>
> ajax('
Yeah!!! Great, this is super-useful! I was not able to make it work
yet it will not install as an appliances and extracting the
application folder in the web2py didnt work either. Its because some
parts are not ready yet? I cant wait to see this in my application
list in web2py!
gls
Hi,
How can I change the encoding of the files edited with the editor's
own web2py?
Rgards,
Jose
So where would I put text and mp3 files that are created by my system
(not uploaded) and available to end users subject to access control:
static or uploads? That doesn't seem to fall into any of your
conventional categories.
On Jun 24, 8:30 am, mdipierro wrote:
> My convention is:
>
> static: fi
Hi,
I use the ajax function as follows:
ajax('func1', ['id1'], '')
because I don't need to send some value to the html page, so I set the
third parameter null. But IE raises error
'document.getElementById(...)' is null or not an object.
How can I use the ajax function when I don't want to send v
Thanks!
On Thu, Jun 24, 2010 at 2:27 PM, mdipierro wrote:
> thinking about how to handle this...
>
> On Jun 22, 12:56 pm, Carles Gonzalez wrote:
>> My english is horrible, an maybe it wasn't clear, but that was exactly
>> my problem :).
>>
>> Currently i'm looking at the code massimo told me abo
The problem is that global works but only within a single request.
Global variables are not persistent between one http request and
another. The mechanism to keep variable presistent is sessions:
def func1():
session.a=request.vars.id1
def func2():
print session.a
On Jun 24, 7:54 am, ilo
Hi,
I try to use global variable in a controller.
global a
a=5
def index():
return dict()
def func1():
global a
a=request.vars.id1
def func2():
global a
print a
The html page call func1 first and change the value of the global
variable "a" to 8. But when html page call func
My convention is:
static: files that are public
uploads: files that are uploaded into the system and may be subject to
access control
private: files that the app needs but are not sent over the network
If you use the built-in upload mechanism it is not a good idea to move
the file.
On Jun 23, 12
yes. It should be amended. I will add to the queue of summer
tasks. ;-)
On Jun 23, 4:10 pm, Joschua wrote:
> I think it should be appended not updated, because that are just the
> top security flaws, but all are important.
>
> The new one are:
> * A6: Security Misconfiguration (crucial)
> * A9: I
thinking about how to handle this...
On Jun 22, 12:56 pm, Carles Gonzalez wrote:
> My english is horrible, an maybe it wasn't clear, but that was exactly
> my problem :).
>
> Currently i'm looking at the code massimo told me about but i think
> that the problem isn't here.
>
> I explain: the pare
This may be useful
http://web2py.com/examples/static/mobile_device_detect.py
On Jun 23, 8:38 am, Doug Warren wrote:
> Does anyone have some hints for showing mobile browsers a different
> set of views than desktop browsers? IE: Detection, redirection,
> etc... Since the view is determined by t
Something s wrong in building the upload paths. You get
C:\\...\\web2py\\applications\\Library/databases\\..\\uploads\\...
notice \\ everywhere (correct) but / between Library and databases and
\\..\\ should not be there.
This is a bug somewhere. a Missing os.path.join probably. Will work on
it
@auth.requires(request.client==None or
auth.has_membership('managers'))
don't work.
What do u mean about fake authentication?
how to do it?
On Jun 22, 3:31 am, Álvaro Justen wrote:
> On Mon, Jun 21, 2010 at 13:30, mdipierro wrote:
> > try
>
> > @auth.requires(request.client==None or
> > auth.
Hi!
I'm validating a self referencing field via onvalidation parameter of
crud.update(). My function checks if this field is the same as the id
and emits an error in this case (setting form.errors.ref_field). (form
is the parameter for the function given to onvalidation)
I read the example to onv
42 matches
Mail list logo