ID, the router would then sets the args
and redirects the request to 'init/main/index/6/1/5/24'which renders the
site.
Is this possible?
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
2.20.4. Thanks in advance for your replies.
KInd regards,
Annet
--
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 because you
and confusing behaviour.
Is there a fix for this problem?
Best,
Annet
--
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 because
I have a view with the following code:
{{=form.custom.widget.image}}
The problem is that in the update form the image does not
display, which is very confusing to the user.
is there a way to fix this issue?
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com
rm.process().accepted:
Kind regards,
Annet
--
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 because you are subscribed to the Goo
other apge loads fine it is just the /init/home/index/ page that has
this problem.
I find this annoying and wonder why this happens and if there is a way to
prevent this from happening.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http
I am not sure I fully understand your question, but doesn't SQLFORM.widgets.
radio.widget
on the pay_with solve your issue?
Best,
Annet
Op dinsdag 22 december 2020 om 17:25:57 UTC+1 schreef mauri...@gmail.com:
> I worked on a way to pay through various methods. It involves a user
> sel
,
Annet
--
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 because you are subscribed to the Google Groups
"web2py-users&q
regards,
Annet
--
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 because you are subscribed to the Google Groups
"web2py-
', 'user',
args='reset_password')+'?key=%(key)s to the address bar of your browser.
Use the form to set a new password'
auth.messages.reset_password_subject = 'Password reset: '
Kind regards,
Annet
Op woensdag 2 december 2020 om 17:17:56 UTC+1 schreef lbjc...@gmail.com:
> I recently successfu
Unable to handle upload Version web2py™
Version 2.20.4-stable+timestamp.2020.05.03.05.18.50 Traceback
The upload field is in
sub.update_record(**db.prm_generic._filter_fields(form.vars))
Why doesn't web2py handle this properly?
KInd regards,
Annet
Op woensdag 11 november 2020 om 17:04:00 UTC
again, every time one of the other fields doesn't
validate.
I haven't noticed this behaviour in version 2.14 of web2py, I
am experiencing this behaviour in web2py 2.20.
I hope there's an easy fix, for this is very annoying.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http
the respective model files to response.models_to_run
So, Gael's post indirectly helped me solve the issue.
Kind regards,
Annet
Op zaterdag 7 november 2020 om 23:45:08 UTC+1 schreef snide...@gmail.com:
>
>
> On Monday, November 2, 2020 at 7:35:45 AM UTC-8, Annet wrote:
>>
>
I forgot to say, uploading an image works, if the folder isn't
there it is being created, otherwise the image is uploaded
to the folder.
Best,
Annet
Op maandag 2 november 2020 om 16:17:48 UTC+1 schreef Annet:
>
> To upload images to separate folders outside web2py I set the upload
&g
in the folder.
I hope someone knows how to solve this issue.
Kind regards,
Annet
--
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
Hi,
Jose, is right, I had the same problem: I did not go to my app directory
prior to activating the virtualenv.
No need to switch databases.
Personally I prefer Opalstack's control panel over Webfaction's control
panel. It's simpler and more powerful.
Best,
Annet
Op dinsdag 20 oktober 2020
Hi Jose,
Thanks for your reply.
One more thing. I've got routes.py in web2py's root folder, as you can see
I've got
three applications, do I place the robots.txt file in all three
application's static
folder?
Kind regards,
Annet
Op vrijdag 16 oktober 2020 om 12:39:18 UTC+2 schreef Jose C
into the /applications/init/static/
Kind regards,
Annet
--
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 because you are subscribed
ific order to place them in.
Kind regards,
Annet
--
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 because you are subscribed to
Hi Jose,
You're right no regrets at all. Just like you I very much appreciate their
willingness to
help you solve the problems you run into when deploying your applications.
Annet
Op dinsdag 13 oktober 2020 om 08:51:21 UTC+2 schreef Jose C:
> Hi Annet,
>
> Just FYI, I'm going on
.
Last week I signed up with Opalstack, https://www.opalstack.com/ and I am
glad I did,
great support and a simple but powerful control panel. One of the former WF
support
people wrote a web2py install script which got me up and running in no time.
Hope this was helpful,
Annet V.
Op vrijdag
ry(window).resize(hoverMenu); // on resize event
jQuery('ul.nav li.dropdown
a').click(function(){window.location=jQuery(this).attr('href');});
});
I think this adds the support you're looking for.
Annet
Op donderdag 1 oktober 2020 om 07:42:22 UTC+2 schreef Octavio:
> I'd like to make
= '*Whats your place of operations?'* do what you want?
Annet
Op vrijdag 18 september 2020 om 12:41:11 UTC+2 schreef mostwanted:
>
> Is there a way to create a placeholder for a reference field?
> e.g:
> {{
> *Field('place', 'reference locations', label=SPAN('Place of operations'),
Maybe use the represent attribute in the field constructor
db.table.field.represent = lambda val, row: function())
and use:
locale.format('%10.2f', val, grouping=True)
Best,
Annet
Op maandag 24 augustus 2020 om 07:43:15 UTC+2 schreef Vlad:
> I've got the rows to be displayed in a ta
this issue?
Kind regards,
Annet
Op vrijdag 17 juli 2020 om 16:33:16 UTC+2 schreef Vlad:
> Missing something basic, but seems to me that the following code should
> result in nested menu:
>
> response.menu = [['One', False, 'link1',
> [
> [
annoying.
Annet
Op zondag 16 augustus 2020 om 12:09:28 UTC+2 schreef Vlad:
> same error, though with a lot more than 3 lines
>
> On Wednesday, June 24, 2020 at 5:36:36 AM UTC-5 serge.bo...@gmail.com
> wrote:
>
>>
>> I have an issue saving my modues with
Hi,
Thanks for your reply. I didn't alter anything in the code,
however, I moved the widget to another module, in
which I forgot to import sqlhtml.py
You reply pointed me in that direction.
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http
this no longer works.
I get an error on;
OptionsWidget
I guess the OptionsWidget has been replaced, the problem is
I cannot figure out by what.
I hope one of you knows,
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
problem use the request object to redirect
HTH,
Annet
--
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 because you are subscribed
= ["first_option", "second_option", "third_option"]
$(function() {$("#dummy_table_name").autocomplete({lookup: suggestions,
minChars: 2});});
});
the autocomplete works, however, I need the ajax lookup, I hope you can
help me
solve this one last issue.
Kind re
es", "data": "AE" },
{ "value": "United Kingdom", "data": "UK" },
{ "value": "United States","data": "US" }
]
Or this:
"suggestions": ["United
auth.has_membesrhip(Region2) and auth.has_membesrhip(HR)
task ...
Maybe this points you in the direction of a solution
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues
, 'store_registration.contact_number', '%(contact_number)s')
and then write your own ON UPDATE CACADE functions
Kind regards,
Annet
--
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
Hi Val,
Thanks for your reply.
I'll do as you suggest.
Kind regards,
Annet
--
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
and python 3.7 this no longer works, does anyone know what
the alternative syntax is?
Kind regards,
Annet
--
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
>
>
>
>
>
The issue left is the bit in red, I haven't been able to figure out how to
add the
class to the A element.
Furthermore I don't understand why web2py reverses the order of the bit in
orange,
no matter the order in which I write the code, I always get
(response.menu, _class='nav navbar-nav', ul_class='dropdown-menu',
li_class='dropdown')}}
Kind regards,
Annet
--
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
Hi Jose,
Thanks for your reply, the link to the discussion on stackoverflow
was very helpful.
Kind regards,
Annet
--
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
When you store the css code in a view e.g. css.html and
include it in a view you can do:
background-image: url('{{=URL('static','images/headerback.jpg')}}');
An other option is the following:
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book
Hi Jim,
Thanks for your reply. I did what you advised me to do.
It's not a python 3.7 issue. I think it has something to do
with modules not being reloaded after they have been edited.
404 NOT FOUND
wasn't pointing in that direction.
Kind regards,
Annet
--
Resources:
- http://web2py.com
I wonder whether it is possible to change the editor's
background colour and colour from cm-s-twilight to
a light background colour.
The dark background doesn't work well under certain
light conditions in the room I'm working in.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http
Have a look at the html of the Bootstrap 4.5 carousel
https://getbootstrap.com/docs/4.5/components/carousel/
maybe that points you in the right direction.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
'content/hero'}}
This used to work well, in web2py 2.19 .1 it results in a 404 NOT FOUND
error
404 NOT FOUND
Any ideas why this no longer works?
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code
application.
Kind regards,
Annet
--
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 because you are subscribed to the Google Groups
I had a similar problem, Anthony explained to me that I should
share the session cookie among all subdomains under the
main domain:
response.cookies['session_id_A']['domain'] = '.example.com'
I hope this points you in the right direction to solve the issue.
Annet
--
Resources:
- http
or Filter to call name_autocomplete() in the jquery
controller.
Kind regards,
Annet
--
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
onger
render?
Kind regards,
Annet
--
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 because you are subscribed to the Google Groups
Hi Ian,
I do have a copy of the script, it's a bit old, but I'll attach
it anyway, maybe it's of help.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
, e.g. http://domain.com/
For the administrative interface to work, the web2py app must be
mounted to and accessed through an HTTPS-enabled site. You would
usually mount the app to two websites - HTTPS-disabled one for
normal access, and HTTPS-enabled one for admin logins
Kind regards,
Annet
I think routes_onerror = [] in routes.py is whar you're
looking for:
routes_onerror = [
,(r'*/404', r'/handler/default/on_404_error')
,(r'*/*', r'/handler/default/onerror')
]
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http
them.
Kind regards
Annet
--
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 because you are subscribed to the Google Groups
"w
I switched to web2py source code long ago, after buying a new mac mini with
Mac OS X Catalina I decided to switch to homebrew en pyenv, there are some
caveats but if you've sorted these out, it all works well.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book
Using cached psycopg2-2.8.4.tar.gz (377 kB)
Installing collected packages: psycopg2
Running setup.py install for psycopg2 ... done
Successfully installed psycopg2-2.8.4
Annets-Mini:~ me$
Your using Linux but maybe this information points you in
the right direction.
Kind regards,
What is the use of:
{{block head}}{{end}}
{{block page_js}}{{end page_js}}
In layout.html
I expected something like this:
{{block head}}
all head elements here
{{end}}
But I obviously didn't get it :-(
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book
Is it possible to add the keyword argument on_define to
auth.settings.extra_fields['auth_user']
Kind regards,
Annet
--
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
this error?
Kind regards,
Annet
--
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 because you are subscribed to the Google Groups
. This is the situation
saved by on_define.
Does this mean that I should put IS_IN_DB() in the on_define keyword
argument?
on_define = lambda table:
[table.vertex_id.set_attributes(requires=IS_IN_DB(db, 'vtx_vertex.id',
'%(id)s')]
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http
something to do with code in the admin app, since that's where the
tickets are stored. I have not been able to locate the code, but it has to
do
with a < operator comparing a str and int.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- h
" to client
but received socket error
Is there a fix for this issue?
Kind regards,
Annet
--
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
ne can help me solve the issue.
Kind regards,
Annet
--
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 because you are subscribed
for the drop-down.
I hope this points you in the right direction to solve your problem
Kind regards,
Annet
--
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
if 'auth' in globals() and auth.is_logged_in():
At the moment all apps have the following setting:
mail = auth.settings.mailer
Is it possible to only have this code in the controlpanel application and
have
the other apps check;
if 'mail' in globals():
and then use 'mail' to send mail?
Kind regards,
Annet
-
Thank you both for your replies.
@Massimiliano
Are you sure the user is *posgres* and not *postgres*? :-D
>
I've checked the connection string over and over again
and just did not spot the missing 't'
Thank you so much for your help!
Best,
Annet
--
Resources:
- http://web2py.com
- h
onalError: FATAL: password authentication failed for user "posgres"
FATAL: password authentication failed for user "posgres"
This is the connection string:
uri = postgres://posgres:password@localhost:5432/database_name
Kind regards,
Annet
--
Resources:
- http:
ot;, line 1282, in __init__
raise self.error
ProgrammingError: ('FATAL', '28P01', 'password authentication failed for user
"posgres"')
I hope you can help me solve the issues
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://gith
RuntimeError: No driver of supported ones
('psycopg2',) is available
I have psycopg2 installed in the python directory
/Library/Python/2.7/site-packages/ that is not where web2py expects it to
be, is there a way to solve this issue?
Kind regards,
Annet
--
Resources:
- http://web2py.c
On Mac OS X Catalina with psycopg2 installed in the
/Python/2.7/site-packages web2py does not find
the psycopg2 driver:
Database drivers available: sqlite3, imaplib, pyodbc, pymysql, pg8000
It did on lower versions of Mac OS X, is there a way to solve this issue?
Best,
Annet
--
Resources
Hi Jarrod,
I also have an issue after upgrading to Mac OS X Catalina see this post for
Massimo's answer:
https://groups.google.com/forum/?fromgroups=#!topic/web2py/431xgrgLkn0
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py
Hi Leonel,
Thanks for your reply.
I am already running Web2py from source and I am using PostgreSQL 12.
Seems like more people are having the same problem both on Windows
and Mac. so far I haven't read a plausible solution.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http
browser...
Illegal instruction: 4
It is nearly impossible to work with Web2py, when I start the server, after
a few minutes Python quits with the Illegal Instruction 4 error.
Is there a way to fix this issue?
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book
What about
form = SQLFORM()
if form.process(...).accepted
instead of
form = SQLFORM().process()
if form.accepted:
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py
?
Best Annet
--
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 because you are subscribed to the Google Groups
"web2py-users&q
Use IS_IN_DB()
ids = [1,3,5]
>
db.auth_membership.group_id.requires =
IS_IN_DB(db(db.auth_group.id.belongs(ids)), 'auth_group.id', '%(role)s')
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- ht
According to the book the connection string for MySql is:
mysql://username:password@localhost/test?set_encoding=utf8mb4
Maybe adding the TCP port solves the issue:
mysql://username:password@localhost:13306/test?set_encoding=utf8mb4
Kind regards,
Annet
--
Resources:
- http://web2py.com
To diasble it:
if form.accepts(..., hideerror=False):
to restyle it, restyle:
.error
Kind regards,
Annet
--
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
What about:
auth.settings.on_failed_authentication = lambda url: redirect(url)
That is what the book says changing the default behaviour.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
^
SyntaxError: invalid syntax
I starting py4web
py4web-start apps
fails with the following error:
FileNotFoundError: [Errno 2] No such file or directory:
'/Users/me/py4web/apps/__init__.py'
How do I resolve these issues?
Kind regards,
Annet
--
Resources:
- http://web2py.co
All of a sudden this link
http://127.0.0.1:8000/controlpanel/default/user/profile
no longer works, instead of returning the form it returns a 404 NOT FOUND.
I didn't change anything in the user function, so I have no idea why this
happens.
Kind regards,
Annet
--
Resources:
- http
I think Anthony answered this question in this post:
https://groups.google.com/forum/?fromgroups=#!topic/web2py/okMVqyQPKV8
hope he did ;-)
Regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
= session.forced_logged_out_message
else:
auth.messages.logged_out = session.messages_logged_out
return None
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
folder pip resides.
I am glad you solved the issue.
Kind regards,
Annet.
--
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 becau
Web2py will always use psycopg2 instead of pg8000 if
psycopg2 is installed.
I hope this helps you solve the issue.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py
it does
not contain any html tag or to strip the textarea of any html tags.
Kind regards,
Annet
--
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
I think Bootstrap's float-right and float-left will solve this issue.
https://getbootstrap.com/docs/4.1/utilities/float/
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
idea what causes the difference in behaviour. I hope you do.
Kind regards,
Annet
--
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 mes
e the fact that a user is logged in with the init
application, on localhost it works however, in production
where init and cms have their own subdomain it does
not work.
Are there additional setting to get this to work in production?
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://
+ ' - ' + r.ntw_edge_label_set.myLabel)) for r
in rows], multiple=(0, 6), zero='Select a value'))
This works but in my opinion this is rather ugly:
'%s' %str(r.vtx_vertex.name + ' - ' + r.ntw_edge_label_set.myLabel)) for r
in rows
Is there a way to improve this code?
Kind regards,
Annet.
--
Resources:
- http
() and set
auth.settings.login_url = URL('controlpanel', 'default', 'user',
args='login')
I removed def user(): from the init application.
Is there a setting to not just set the login_url but to set all urls,
something like:
auth.settings.user_url = URL('controlpanel', 'default', 'user')
Kind regar
rlos said I had add the import os statement to my own model file.
This was not the case in web2py version 2.14.5 (I checked all my model
files), so I guess something must have changed between 2.14.5 and 2.17.2.
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
on.back_end_vertexID)),
NameError: name 'os' is not defined
What has changed between these versions that's causing this error? As far
as I can see 0_imports .py still imports os
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://gith
Hi Anders,
In the query use .contains()
Something lijke:
rows = db(db.table.field.contains(request.get_vars.term,
case_sensitive=False)).select().as_list()
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code
Hi Stavros,
I think this'll solve your problem:
{{=MENU(response.menu, _class='web2py-menu', li_class='dropdown',
ul_class='dropdown-menu')}}
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
viewtype 2 x views of whichy thing usersz none thing users
etc.
This is the join:
join = db.auth_user.on(db.app_settings.vertexID==db.auth_user.vertexID)
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py
Hi Stifan,
Thanks for your helpful reply. Anthony's solution solves the issue.
Best,
Annet
--
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
I have the following line of code in 00_db.py
raise HTTP(503, "Maintenance")
Is it possible to replace the code between "" with a view name, as in
response.view = '503_handler.html'
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (D
NGID))
rowset = db((db.vtx_label.label.belongs(labels)) &
(db.vtx_label.vertexID!=vertexID))
label_count = db.vtx_label.id.count()
count = rowset.select(label_count, join=join).first()[label_count]
rows = rowset.select(join=join)
Best,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentati
.belongs(labels)) &
(db.vtx_label.vertexID!=vertexID) &
(db.vtx_label.vertexID==db.vtx_vertex.id) &
(db.vtx_vertex.typeID==IOTHINGID))
count = rowset.count()
rows = rowset.select()
I'd like to keep the join separate from the where clause.
Best,
Annet
-
ide = True)
Kind regards,
Annet
--
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 because you are subscribed to the Google Gro
results in the menu in the header displaying
multiple dropdown carets and the menu items not being clickable anymore.
What is the best way to solve this issue?
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
Hi Anthony,
Thanks for your reply and explanation, I changed my code
to the code you provided.
Kind regards,
Annet
--
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
1 - 100 of 1573 matches
Mail list logo