[web2py] Easy way to add Doxygen output?

2017-12-09 Thread Vinyl Darkscratch-Kazotetsu
So essentially, I'm wanting to configure my web server to easily load 
Doxygen output, however I'm not sure what the best method would be.  I was 
wondering if anyone else has done this, and/or has good recommendations on 
how to configure it?

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] SQLFORM.grid change form vars

2016-03-19 Thread Vinyl Darkscratch-Kazotetsu
Ah, I see what my problem is — the default was defined after the SQLFORM.grid() 
in the controller, not before it.  Works like a charm, no errors or issues.

As for onvalidation, I’ll give it a whirl and see how it goes.  Thank you.

> On Mar 15, 2016, at 22:42, Anthony <abasta...@gmail.com> wrote:
> 
> On Wednesday, March 16, 2016 at 1:32:26 AM UTC-4, Vinyl Darkscratch-Kazotetsu 
> wrote:
> I see it now — I had assumed that you could set the default in the controller 
> function, but it seems that it has to be in the model file.  Thank you for 
> your help on this issue.
> 
> No, default can be set after the model declaration, including in the 
> controller (but before the grid is created, as the grid method handles the 
> form processing and database insert, so any model attributes must be set 
> before calling the grid).
>  
> Still, though…I would like to know how to edit the variables submitted by the 
> form, and still unsure how to do that.  For example, if a staff member were 
> to post their Inkbunny link, I would want to force that link’s explicit field 
> to true, but by default they provide the choice of marking it as explicit 
> content or not.  Any good suggestions there?
> 
> Not exactly clear what you want to do, but maybe an onvalidation function 
> would work (it takes the form object, so you can access and manipulate 
> form.vars).
> 
> Anthony
> 
> -- 
> Resources:
> - http://web2py.com <http://web2py.com/>
> - http://web2py.com/book <http://web2py.com/book> (Documentation)
> - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source 
> code)
> - https://code.google.com/p/web2py/issues/list 
> <https://code.google.com/p/web2py/issues/list> (Report Issues)
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "web2py-users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/web2py/I9Xg4BI5SA8/unsubscribe 
> <https://groups.google.com/d/topic/web2py/I9Xg4BI5SA8/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> web2py+unsubscr...@googlegroups.com 
> <mailto:web2py+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] SQLFORM.grid change form vars

2016-03-15 Thread Vinyl Darkscratch-Kazotetsu
I see it now — I had assumed that you could set the default in the controller 
function, but it seems that it has to be in the model file.  Thank you for your 
help on this issue.

Still, though…I would like to know how to edit the variables submitted by the 
form, and still unsure how to do that.  For example, if a staff member were to 
post their Inkbunny link, I would want to force that link’s explicit field to 
true, but by default they provide the choice of marking it as explicit content 
or not.  Any good suggestions there?

> On Mar 15, 2016, at 21:24, Anthony <abasta...@gmail.com> wrote:
> 
> On Tuesday, March 15, 2016 at 9:18:00 PM UTC-4, Vinyl Darkscratch-Kazotetsu 
> wrote:
> The user_id field is both non-readable and non-writable already, which is 
> what's causing that error.  It's not receiving any data for the field from 
> anywhere.  As for the various argument passing parameters, I am unsure of how 
> to implement it into the website to set form.vars.user_id to auth.user.id 
> <http://auth.user.id/>, would you please elaborate?
> 
> Note, the error you are seeing is unrelated to the issue of how to hide 
> particular fields from your users in the forms. If you've already set user_id 
> to be non-writable, there is no need for the "fields" argument to SQLFORM. 
> The problem you are having is due to the fact that the field is required but 
> you have excluded it from the form without specifying a default. So, if the 
> default should be auth.user_id, just do:
> 
> Field('user_id', 'reference auth_user', default=auth.user_id)
> 
> Anthony
> 
> -- 
> Resources:
> - http://web2py.com <http://web2py.com/>
> - http://web2py.com/book <http://web2py.com/book> (Documentation)
> - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source 
> code)
> - https://code.google.com/p/web2py/issues/list 
> <https://code.google.com/p/web2py/issues/list> (Report Issues)
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "web2py-users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/web2py/I9Xg4BI5SA8/unsubscribe 
> <https://groups.google.com/d/topic/web2py/I9Xg4BI5SA8/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> web2py+unsubscr...@googlegroups.com 
> <mailto:web2py+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: SQLFORM.grid change form vars

2016-03-15 Thread Vinyl Darkscratch-Kazotetsu
The *user_id* field is both non-readable and non-writable already, which is 
what's causing that error.  It's not receiving any data for the field from 
anywhere.  As for the various argument passing parameters, I am unsure of 
how to implement it into the website to set form.vars.user_id to 
auth.user.id, would you please elaborate?

On Monday, March 14, 2016 at 10:22:27 PM UTC-7, Anthony wrote:
>
> You can use formargs, editargs, createargs, and viewargs to pass arguments 
> to the SQLFORM calls for create/edit/view forms. You can also set the 
> readable/writable attributes of individual fields to prevent them from 
> being displayed in the forms.
>
> Anthony
>
> On Tuesday, March 15, 2016 at 1:10:48 AM UTC-4, Vinyl 
> Darkscratch-Kazotetsu wrote:
>>
>> It doesn't seem like anyone else has run into this particular issue 
>> before.  I have an SQLFORM grid that is allowing my staff members on our 
>> website to add links to their profile upon the crew page.  An example is 
>> mine at https://www.nightwave.me/crew?member=VinylDarkscratch
>> However, I found out that SQLFORM.grid does not take a *fields* parameter 
>> like normal SQLFORM does, and as such staff members have access to edit 
>> fields they should not be able to, such as the user ID.  So, I attempted to 
>> set a default for the fields, in the controller function, to be the value 
>> that I'd like it to be, however I had gotten the following error:
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>> 17.
>> 18.
>> 19.
>> 20.
>> 21.
>> 22.
>> 23.
>> 24.
>>
>> Traceback (most recent call last):
>>   File "/home/vinyldarkscratch/nightwave/gluon/restricted.py", line 227, in 
>> restricted
>> exec ccode in environment
>>   File 
>> "/home/vinyldarkscratch/nightwave/applications/nightwave/controllers/default.py"
>>  <https://www.nightwave.me/admin/edit/nightwave/controllers/default.py>, 
>> line 294, in 
>>   File "/home/vinyldarkscratch/nightwave/gluon/globals.py", line 412, in 
>> 
>> self._caller = lambda f: f()
>>   File "/home/vinyldarkscratch/nightwave/gluon/tools.py", line 3774, in f
>> return action(*a, **b)
>>   File 
>> "/home/vinyldarkscratch/nightwave/applications/nightwave/controllers/default.py"
>>  <https://www.nightwave.me/admin/edit/nightwave/controllers/default.py>, 
>> line 68, in submit_bio_links
>> linkform = SQLFORM.grid((db.user_links.user_id == auth.user.id))
>>   File "/home/vinyldarkscratch/nightwave/gluon/sqlhtml.py", line 2264, in 
>> grid
>> onsuccess=oncreate)
>>   File "/home/vinyldarkscratch/nightwave/gluon/html.py", line 2301, in 
>> process
>> self.validate(**kwargs)
>>   File "/home/vinyldarkscratch/nightwave/gluon/html.py", line 2238, in 
>> validate
>> if self.accepts(**kwargs):
>>   File "/home/vinyldarkscratch/nightwave/gluon/sqlhtml.py", line 1711, in 
>> accepts
>> self.vars.id = self.table.insert(**fields)
>>   File 
>> "/home/vinyldarkscratch/nightwave/gluon/packages/dal/pydal/objects.py", line 
>> 712, in insert
>> ret = self._db._adapter.insert(self, self._listify(fields))
>>   File 
>> "/home/vinyldarkscratch/nightwave/gluon/packages/dal/pydal/objects.py", line 
>> 658, in _listify
>> 'Table: missing required field: %s' % name)
>> RuntimeError: Table: missing required field: user_id
>>
>>
>> Any suggestions on how to set a field's value in an SQLFORM.grid after 
>> submission?
>>
>

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] SQLFORM.grid change form vars

2016-03-14 Thread Vinyl Darkscratch-Kazotetsu
It doesn't seem like anyone else has run into this particular issue before. 
 I have an SQLFORM grid that is allowing my staff members on our website to 
add links to their profile upon the crew page.  An example is mine 
at https://www.nightwave.me/crew?member=VinylDarkscratch
However, I found out that SQLFORM.grid does not take a *fields* parameter 
like normal SQLFORM does, and as such staff members have access to edit 
fields they should not be able to, such as the user ID.  So, I attempted to 
set a default for the fields, in the controller function, to be the value 
that I'd like it to be, however I had gotten the following error:

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.

Traceback (most recent call last):
  File "/home/vinyldarkscratch/nightwave/gluon/restricted.py", line 227, in 
restricted
exec ccode in environment
  File 
"/home/vinyldarkscratch/nightwave/applications/nightwave/controllers/default.py"
 , line 
294, in 
  File "/home/vinyldarkscratch/nightwave/gluon/globals.py", line 412, in 

self._caller = lambda f: f()
  File "/home/vinyldarkscratch/nightwave/gluon/tools.py", line 3774, in f
return action(*a, **b)
  File 
"/home/vinyldarkscratch/nightwave/applications/nightwave/controllers/default.py"
 , line 
68, in submit_bio_links
linkform = SQLFORM.grid((db.user_links.user_id == auth.user.id))
  File "/home/vinyldarkscratch/nightwave/gluon/sqlhtml.py", line 2264, in grid
onsuccess=oncreate)
  File "/home/vinyldarkscratch/nightwave/gluon/html.py", line 2301, in process
self.validate(**kwargs)
  File "/home/vinyldarkscratch/nightwave/gluon/html.py", line 2238, in validate
if self.accepts(**kwargs):
  File "/home/vinyldarkscratch/nightwave/gluon/sqlhtml.py", line 1711, in 
accepts
self.vars.id = self.table.insert(**fields)
  File "/home/vinyldarkscratch/nightwave/gluon/packages/dal/pydal/objects.py", 
line 712, in insert
ret = self._db._adapter.insert(self, self._listify(fields))
  File "/home/vinyldarkscratch/nightwave/gluon/packages/dal/pydal/objects.py", 
line 658, in _listify
'Table: missing required field: %s' % name)
RuntimeError: Table: missing required field: user_id


Any suggestions on how to set a field's value in an SQLFORM.grid after 
submission?

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Update all languages not catching Markmin

2016-03-14 Thread Vinyl Darkscratch-Kazotetsu
Opened a ticket for this particular issue on GitHub 
at: https://github.com/web2py/web2py/issues/1206

On Sunday, March 13, 2016 at 6:05:08 PM UTC-7, Vinyl Darkscratch-Kazotetsu 
wrote:
>
> I tried both the most recent stable, and the trunk, though neither of them 
> have functioned, sadly.  I'll attempt the trunk version once again, and see 
> if it works...
>
> On Saturday, March 12, 2016 at 9:55:53 PM UTC-8, Massimo Di Pierro wrote:
>>
>> Most recent stable or trunk?
>>
>> On Saturday, 12 March 2016 23:42:06 UTC-6, Vinyl Darkscratch-Kazotetsu 
>> wrote:
>>>
>>> I've been having this issue since updating to the most recent web2py 
>>> version.  On two of the sites I have coded, Markmin is extensively used. 
>>>  Unfortunately, I've noticed that calls to T.M() aren't being detected in 
>>> the language file updates, which means that I am unable to obtain most of 
>>> my content to add into the translations and would have to do it manually.
>>>
>>> I am hoping to avoid the manual extraction to prevent future conflicts 
>>> with various updates.  Are there any suggestions that would help with this 
>>> issue?
>>>
>>

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Update all languages not catching Markmin

2016-03-13 Thread Vinyl Darkscratch-Kazotetsu
I tried both the most recent stable, and the trunk, though neither of them 
have functioned, sadly.  I'll attempt the trunk version once again, and see 
if it works...

On Saturday, March 12, 2016 at 9:55:53 PM UTC-8, Massimo Di Pierro wrote:
>
> Most recent stable or trunk?
>
> On Saturday, 12 March 2016 23:42:06 UTC-6, Vinyl Darkscratch-Kazotetsu 
> wrote:
>>
>> I've been having this issue since updating to the most recent web2py 
>> version.  On two of the sites I have coded, Markmin is extensively used. 
>>  Unfortunately, I've noticed that calls to T.M() aren't being detected in 
>> the language file updates, which means that I am unable to obtain most of 
>> my content to add into the translations and would have to do it manually.
>>
>> I am hoping to avoid the manual extraction to prevent future conflicts 
>> with various updates.  Are there any suggestions that would help with this 
>> issue?
>>
>

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Finnish language translator

2016-03-12 Thread Vinyl Darkscratch-Kazotetsu
Looking forward to it, Di Pierro!

- VD, Nightwave Studios

> On Mar 12, 2016, at 21:53, Massimo Di Pierro <massimo.dipie...@gmail.com> 
> wrote:
> 
> Thank you for the offer. This is fantastic. Will contact you personally.
> 
> On Saturday, 12 March 2016 23:42:05 UTC-6, Vinyl Darkscratch-Kazotetsu wrote:
> My name is Vinyl Darkscratch and I am the founder of Nightwave Studios.  We 
> run a translation group known as Speak Louder 
> (https://www.nightwave.me/speaklouder 
> <https://www.nightwave.me/speaklouder>), and would be willing to help 
> translate (for free) into any of the languages listed.  Feel free to contact 
> us here or on our form linked on the left side of our site.  ;)
> 
> 
> On Wednesday, March 26, 2014 at 12:20:43 AM UTC-7, at wrote:
> Hi,
> 
> I am working on a web-application which needs to be translated to finnish 
> language and there are no translator available for finnish in web2py 
> languages folder. Can someone suggest what to do now? 
> 
> Thanks
> 
> -- 
> Resources:
> - http://web2py.com <http://web2py.com/>
> - http://web2py.com/book <http://web2py.com/book> (Documentation)
> - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source 
> code)
> - https://code.google.com/p/web2py/issues/list 
> <https://code.google.com/p/web2py/issues/list> (Report Issues)
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "web2py-users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/web2py/Me2gZ2kotPY/unsubscribe 
> <https://groups.google.com/d/topic/web2py/Me2gZ2kotPY/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> web2py+unsubscr...@googlegroups.com 
> <mailto:web2py+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Finnish language translator

2016-03-12 Thread Vinyl Darkscratch-Kazotetsu
My name is Vinyl Darkscratch and I am the founder of Nightwave Studios.  We 
run a translation group known as Speak Louder 
(https://www.nightwave.me/speaklouder), and would be willing to help 
translate (for free) into any of the languages listed.  Feel free to 
contact us here or on our form linked on the left side of our site.  ;)


On Wednesday, March 26, 2014 at 12:20:43 AM UTC-7, at wrote:
>
> Hi,
>
> I am working on a web-application which needs to be translated to finnish 
> language and there are no translator available for *finnish* in web2py 
> languages folder. Can someone suggest what to do now? 
>
> Thanks
>

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Update all languages not catching Markmin

2016-03-12 Thread Vinyl Darkscratch-Kazotetsu
I've been having this issue since updating to the most recent web2py 
version.  On two of the sites I have coded, Markmin is extensively used. 
 Unfortunately, I've noticed that calls to T.M() aren't being detected in 
the language file updates, which means that I am unable to obtain most of 
my content to add into the translations and would have to do it manually.

I am hoping to avoid the manual extraction to prevent future conflicts with 
various updates.  Are there any suggestions that would help with this issue?

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.