That may work, but I have multiple accept-languages. I can read in Russian
and English, even though I am an American living in USA.
Accept-Language values can have multiple values, so by blocking ru-RU you
are just blocking anyone who can read russian.
here's my header...
don't know is this a bug or not.
*code*
*models/db.py*
db.delivery_header.sale_order_no.show_if =
(db.delivery_header.delivery_type == 'Sale Order')
*controllers/default.py*
def delivery_form():
if request.post_vars.delivery_type == 'Sale Order':
On Wednesday, June 17, 2015 at 2:03:21 PM UTC-7, Carlos A. Armenta Castro
wrote:
Please clear your browser cache and try again. If you test in other
computer you will see the page renders normally.
If that isn't sufficient, see Kiran's msg in another thread:
auth_group is for groups. auth_permissions is for permissions. as any other
table in your db, the problem is not the # of records, rather than what
query you need to do on those.
On Wednesday, June 17, 2015 at 10:42:57 PM UTC+2, Alex Glaros wrote:
db.auth_group is doing double duty in my app
BTW: a million users doesn't really qualify for a single postgres database,
no matter what.
On Wednesday, June 17, 2015 at 11:17:39 PM UTC+2, Niphlod wrote:
auth_group is for groups. auth_permissions is for permissions. as any
other table in your db, the problem is not the # of records,
there's a distinct lack of singular/plurals in your statements that may
pinpoint the problem.
multiple apps -- multiple uwsgi processes
either you hg update all the apps, and restart ALL uwsgi processes (more
a reload than a restart, hopefully, touching EACH and EVERYONE of the files
uwsgi
Didn't mean to use *permissions* ambiguously.
db.auth_group will contain the role e.g., SME, and db.auth_membership
will contain the IDs of people in that SME role.
but what does this mean: *million users doesn't really qualify for a single
postgres database*? That a million users is too
db.auth_group is doing double duty in my app as a role table for everything
in addition to permissions. Examples: (a) Partnership roles with the
organization. (b) Employee roles such as SME for a project. There may be
millions of people reading/writing concurrently.
Is there anything different
On Wednesday, June 17, 2015 at 5:37:57 PM UTC-7, Dave S wrote:
On Wednesday, June 17, 2015 at 2:03:21 PM UTC-7, Carlos A. Armenta Castro
wrote:
Please clear your browser cache and try again. If you test in other
computer you will see the page renders normally.
If that isn't
On Wednesday, June 17, 2015 at 4:42:57 PM UTC-4, Alex Glaros wrote:
db.auth_group is doing double duty in my app as a role table for
everything in addition to permissions. Examples: (a) Partnership roles with
the organization. (b) Employee roles such as SME for a project. There may
be
Is your download function in the same controller as the action that
displays the link (if not, you need to specify the controller in the URL()
function)? Also, where are you looking for the printed value -- it will
appear in the console? Finally, you have the @cache.action() decorator on
the
I suggest never block anyone. It's better to use honeytraps/sandboxes.
Use a geoip library (http://pythonhosted.org/python-geoip/ or similar)
if ipfrom == 'ru':
redirect(... nice static page ...)
If you use nginx you can do that almost out of the box with many other
options such as
Please clear your browser cache and try again. If you test in other computer
you will see the page renders normally.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report
I was copy pasting the code and noticed that message which you use in the
email queue example is not valid as it is a reserved word in the Fields.
Just thought I would mention it.
BR,
Jason Brower
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
set paginate to the size you want.
SQLFORM.grid(..., paginate=1, ...)
see
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=SQLFORM.grid+signature#SQLFORM-grid-signature
Am Mittwoch, 17. Juni 2015 08:57:42 UTC+2 schrieb
jackso...@quantachrome.com:
Is there
beside from the fact that is hardly a web2py problem, what the heck ? you
udpate the app and you don't want to reload the process that runs it ?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
10.0 for 2008, 11.0 for 2012, (or 12.0, if sql server 2016 will show up).
BTW: for anything else than MSSQL2000, mssql:// is NOT the recommended
adapter.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
This does not work. No image is displayed. The layout seems to lose it too,
the response menu now has 2 rows this causes things to be obscured by
it. Should I be trying this at all? If the menu was designed for text only
ok but put it in the Docs. This was the only change I did to the
But, if I have a PDF stored in a blob field, how could I use PDF.js do
display it?
Il giorno venerdì 24 ottobre 2014 19:32:08 UTC+2, José Eloy ha scritto:
Any Idea?
Regards
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Hello,
In my app on the local server enough to use the termination .json in function call that
web2py automatically returning the results by generic.json. Now, with my app running on
nginx/uwsgi get an error 404 and invalid view as a result of the call.
If i use response.view = 'generic.json'
I am using the folllwing code to run a SOAP service and getting this error:
Any help is greatly appreciated. Thanks
from pysimplesoap.client import SoapClient
import socket
import os
client = SoapClient(wsdl=http://me-uat-txapp1/MEUAT/TxWS.asmx?WSDL;)
host = socket.gethostname()
pid =
I've just upgraded to 2.11.2 and my application works ok but the Admin
Interface looks horrible - probably not picking up the right css etc. I
tried the Upgrade button but got a DAL error message so then I downloaded
the current source file, unzipped it and reinstalled my application files
I want to print request.args inside download controller for testing. But it
dosn't print anything. It print request but not request.args.
Download controller :
@cache.action()
def download():
allows downloading of uploaded files
http:///[app]/default/download/[filename]
nope.
On Wednesday, June 17, 2015 at 8:57:45 AM UTC+2, pysab wrote:
Hi there :)
I'm using web2py 2.9.10 with a database PostgreSQL 9.4 for a new project
and I have a question about sorting. In PostgreSQL, when I execute a
SELECT, I can specify 'ORDER BY x ASC NULLS FIRST', which is not
Hi there :)
I'm using web2py 2.9.10 with a database PostgreSQL 9.4 for a new project
and I have a question about sorting. In PostgreSQL, when I execute a
SELECT, I can specify 'ORDER BY x ASC NULLS FIRST', which is not the
default output. Is there a way to do that with the DAL other than
Is there anyway to make a SQLform.grid scroll instead of using page numbers.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message
there's a handy directive for it.
https://github.com/web2py/web2py/blob/master/applications/welcome/models/db.py#L33
On Wednesday, June 17, 2015 at 8:57:45 AM UTC+2, K.J. Pamio wrote:
Hello,
In my app on the local server enough to use the termination .json in function
call that web2py
You are more than welcome
If you miss some function, feature please let me know.
I try to put it into Sublime
Regards
Greg
2015. június 17., szerda 10:46:15 UTC+2 időpontban Ramos a következőt írta:
Thank you Gergely Orosz for your work.
Having the wep2y console and server console inside
In a network application I've got the following query:
rows = db((db.edg_edge.fromID==vertexID)
(db.edg_edge.toID==db.vtx_vertex.id)
(db.lct_address.label==PHYSICALADDRESSID)).select(db.edg_edge.ALL,
db.vtx_vertex.ALL, db.lct_address.ALL, db.wb_app.apptypeID,
Thank you Gergely Orosz for your work.
Having the wep2y console and server console inside Sublime makes me a lot
more productive.
Just what i was looking for.
Regards
António
2015-06-12 17:37 GMT+01:00 António Ramos ramstei...@gmail.com:
Ok.just some some...
Em 12/06/2015 17:27, António
The appadmin.py may have changed between web2py releases (release1 being
the one which you used to create your application initially, and release2
being the one that you want to run your application in now.)
By default this appadmin.py is contained within your application.
So, can you try to
a image=whatever/a is hardly the way to display an image .
On Wednesday, June 17, 2015 at 8:57:45 AM UTC+2, jackso...@quantachrome.com
wrote:
This does not work. No image is displayed. The layout seems to lose it
too, the response menu now has 2 rows this causes things to be obscured
Yes, I understand it's not a web2py problem, I was just wondering if there
was a way of achieving that without restarting uwsgi process.
I can see the need of restarting the process that runs the app after
updating that app. However, most of the times, the update involves changes
to static
On Wednesday, June 17, 2015 at 2:57:42 AM UTC-4,
jackson.r...@quantachrome.com wrote:
Is there anyway to make a SQLform.grid scroll instead of using page
numbers.
Are you looking for infinite scrolling (i.e., as you scroll down the page,
additional records automatically load via Ajax)? If
On Wednesday, June 17, 2015 at 8:07:45 AM UTC-4, Oli wrote:
set paginate to the size you want.
SQLFORM.grid(..., paginate=1, ...)
see
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=SQLFORM.grid+signature#SQLFORM-grid-signature
For very large numbers
why don't you use the emperor mode with uwsgi pointing each process to a
file that, when you modify it, reloads automatically the process ?
On Wednesday, June 17, 2015 at 5:13:02 PM UTC+2, Lisandro wrote:
Yes, I understand it's not a web2py problem, I was just wondering if there
was a way of
That's what I have actually :)
I have emperor mode configured as suggested in the book. When I want to
restart uwsgi process, I just make a touch to the uwsgi.ini file and the
process restart successfully. It's inmediate and transparent to the users
(I mean, users browsing the websites).
The
37 matches
Mail list logo