Re: [web2py] Active directory authentication

2023-02-06 Thread SilvianTop 10 AnswersCedru
Thanks I will try that out cause the only thing that I got to work today 
was openid and I am not so sure if that is a good option for that .

urban@gmail.com schrieb am Montag, 6. Februar 2023 um 14:21:27 UTC+7:

> "Did you figure it out in the end cause I am facing the same issue right 
> now :)"
>
> We didn't yet end up using AD auth in production, though I did eventually 
> have a *rudimentary *working version. 
>
> I ended up using the python msal library directly.
>
> https://github.com/AzureAD/microsoft-authentication-library-for-python
>
>
>
> redirect_url = "https://www.ourwebsite/token";
> b2c_tenant = "some-uuid"
> signupsignin_user_flow = "B2C_1_signupsignin1"
> editprofile_user_flow = "B2C_1_profileediting1"
> resetpassword_user_flow = "B2C_1_passwordreset1"  # Note: Legacy setting.
> authority_template = "https://login.microsoftonline.com/{tenant}";
> CLIENT_ID = "some-uuid"
> CLIENT_SECRET = "some-uuid" 
>
> AUTHORITY = authority_template.format(
> tenant=b2c_tenant, user_flow=signupsignin_user_flow)
> B2C_PROFILE_AUTHORITY = authority_template.format(
> tenant=b2c_tenant, user_flow=editprofile_user_flow)
> B2C_RESET_PASSWORD_AUTHORITY = authority_template.format(
> tenant=b2c_tenant, user_flow=resetpassword_user_flow)
> REDIRECT_PATH = "/getAToken"  # Used for forming an absolute URL to your 
> redirect URI.
> ENDPOINT = '' # Application ID URI of app registration in Azure portal
> SCOPE = []  # Example with two exposed scopes: ["demo.read", "demo.write"]
> SESSION_TYPE = "filesystem"  # Specifies the token cache should be stored 
> in server-side session
>
> def _load_cache():
> cache = msal.SerializableTokenCache()
> if session.get("token_cache"):
> cache.deserialize(session["token_cache"])
> return cache
>
> def _save_cache(cache):
> if cache.has_state_changed:
> session["token_cache"] = cache.serialize()
>
> def _build_msal_app(cache=None, authority=None):
> return msal.ConfidentialClientApplication(
> app_config.CLIENT_ID, authority=authority or app_config.AUTHORITY,
> client_credential=app_config.CLIENT_SECRET, token_cache=cache)
>
> def _build_msal_app(cache=None, authority=None):
> return msal.ConfidentialClientApplication(
> CLIENT_ID, authority=authority or AUTHORITY,
> client_credential=CLIENT_SECRET, token_cache=cache)
>
> def _build_auth_code_flow(authority=None, scopes=None):
> return _build_msal_app(authority=authority).initiate_auth_code_flow(
> scopes or [],
> redirect_uri=redirect_url)
>
> Then I use these functions on the login page.
>
> Something like this:
> session["flow"] = _build_auth_code_flow(scopes=SCOPE) if 
> settings.enable_ad else None
> ad_login_url = session['flow']['auth_uri'] if session["flow"] else 
> ''
> return dict(formLogin = formLogin, loggedIn = False, ad_login_url
> =ad_login_url)
>
> Using the ad_login_url to redirect to with a button on the login page. 
> Then there's the standard microsoft register/login form that redirects to 
> the my "token" controller function referenced in the "redirect_url" at the 
> top of the pasted code. This url needs to be configured where you register 
> an azure app. 
>
> In the token controller you recieve the token which you an then use for 
> authentication - login/registration
>
> Something like this:
> def token():
>   cache = _load_cache()
>   result = _build_msal_app(cache=cache).acquire_token_by_auth_code_flow(
> session.get("flow", {}), request.vars
>   )
>
>   user = result['id_token_claims']
>
>   if "error" in result:
> return dict()
>
>   _save_cache(cache)
>   session["user"] = result.get("id_token_claims")
>   username = user['preferred_username']
>
> I don't know how clear this is, hopefully it's at least a little bit 
> helpful, but I'm a bit fuzzy on the details. 
> On Monday, February 6, 2023 at 6:05:52 AM UTC+1 david@gmail.com wrote:
>
>> We do AD authentication with Shibboleth as our service provider on IIS 
>> 10.  I don't know if that would be an option.  We couldn't find anything 
>> else that worked on Windows. 
>>
>> Sent from Outlook for Android <https://aka.ms/AAb9ysg>
>> --
>> *From:* web...@googlegroups.com  on behalf of 
>> Silvian “Top 10 An

[web2py] SSO integration with Azure AD

2023-02-05 Thread SilvianTop 10 AnswersCedru
Hello everyone,

I am facing a little problem here I tried the LDAP approach but I have in 
issue with importing it since it tells me mutable mapping is missing I was 
wondering if someone knows an easier way to set up SSO in my web2py 
application but with Azure Ad. 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b41edd2e-a839-46f4-a68c-9cfcb6cac06cn%40googlegroups.com.


Re: [web2py] Active directory authentication

2023-02-05 Thread SilvianTop 10 AnswersCedru
Did you figure it out in the end cause I am facing the same issue right now 
:) 

urban@gmail.com schrieb am Donnerstag, 3. März 2022 um 21:31:25 UTC+7:

> "Still trying to wade through the seemingly half outdated guides"
> I'm referring to Azure guides not Web2Py.
>
> On Thursday, March 3, 2022 at 2:10:33 PM UTC+1 urban@gmail.com wrote:
>
>> No it's not on-premise. They said so explicitly. Apologise for the low 
>> info questions. Still trying to wade through the seemingly half outdated 
>> guides. Finally got the Flask demo that MS provides to work so that I know 
>> the Azure side of things is working at least. Now have to figure out how to 
>> implement it in Web2Py. Is the ldap_auth method only for on premise AD?
>>
>> On Wednesday, March 2, 2022 at 7:24:58 PM UTC+1 nico...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> do you really use Azure AD? Otherwise, for normal on-premise AD, see the 
>>> documentation on 
>>> http://web2py.com/books/default/chapter/29/09/access-control#LDAP and 
>>> https://github.com/web2py/web2py/blob/master/gluon/contrib/login_methods/ldap_auth.py
>>>
>>> Nico
>>>
>>>
>>> Il giorno mer 2 mar 2022 alle ore 16:48 urban@gmail.com <
>>> urban@gmail.com> ha scritto:
>>>
 We're looking into adding AD authentication to our app. We have an 
 active directory account and an app registered on it.

 In the documentation I found this example of enabling AD auth:

 from gluon.contrib.login_methods.ldap_auth import ldap_auth  
 auth.settings.login_methods.append(
   ldap_auth( 
mode='ad', 
server='https://aad.portal.azure.com/',
base_dn='ou=Users,dc=domain,dc=com'
   )
 )

 However I get this error when trying to login

 DEBUG:web2py.auth.ldap_auth:Traceback (most recent call last):
   File 
 "C:\urban\web2py_latest\web2py\gluon\contrib\login_methods\ldap_auth.py", 
 line 236, in ldap_auth_aux
 con = init_ldap()
   File 
 "C:\urban\web2py_latest\web2py\gluon\contrib\login_methods\ldap_auth.py", 
 line 630, in init_ldap
 "ldap://"; + ldap_server + ":" + str(ldap_port))
   File "C:\Python27\lib\site-packages\ldap\functions.py", line 92, in 
 initialize
 uri, trace_level, trace_file, trace_stack_limit, bytes_mode, 
 **kwargs)
   File "C:\Python27\lib\site-packages\ldap\ldapobject.py", line 106, in 
 __init__
 self._l = 
 ldap.functions._ldap_function_call(ldap._ldap_module_lock,_ldap.initialize,uri)
   File "C:\Python27\lib\site-packages\ldap\functions.py", line 55, in 
 _ldap_function_call
 result = func(*args,**kwargs)
 LDAPError: (0, 'Error')

 Am I doing anything wrong on the web2py side or is the issue in the AD 
 configuration?

 -- 
 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+un...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/7d013980-154b-4b94-9365-4a64f9e32423n%40googlegroups.com
  
 
 .

>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a406d846-fdc8-4e71-aa0c-4efb8b4f1c5an%40googlegroups.com.


Re: [web2py] Re: Issue password in plain text before sending when login in the website via HTTPS

2022-11-25 Thread SilvianTop 10 AnswersCedru
Hello Chris,

thanks for the detailed information appreciate it.

chriii...@gmail.com schrieb am Donnerstag, 24. November 2022 um 03:24:06 
UTC+7:

> Hello. 
>
> TLS is enough to encrypt and secure the connection, the whole point of 
> HTTPS protocol is to make a clear text channel secure. 
>
> If someone is sniffing your HTTPS connection, will be not able to read the 
> traffic, except if the attacker performs a Man In the Middle and replace 
> the TLS certificate like burpsuite do, but  if something like that happens, 
> there is no point to hash the username and password because capturing the 
> cookie session will be enough to enter the application, or even reutilizing 
> the transmitted hash.
>
> I'm not aware of any mechanism in web2py to hash the username/password. 
> Maybe you can achieve this by adding some javascript code that hash these 
> values when click on submit, and probably you will have to modify an 
> internal component in web2py to make the auth validation able to read your 
> hashed data.
>
> I've been working in the world of cyber security for a lot of years 
> and most of the times when someone point this like a vulnerability is 
> because probably he doesn't understand really well the materia and make an 
> alarm for something that is already protected. In this case HTTPS is 
> enough. If your cyber security officer is saying that the app is not 
> protected even using HTTPS and gives you examples with burpsuite, is clear 
> that he/she does not understand why burpsuite is able to decrypt data (due 
> their own certificate) and will think that everything is unencrypted.
>
> I've some banks  that like to hash the transmitted data even with the 
> HTTPS protection. But again... this is not really secure because hashing 
> data before sending, would need to be performed in the browser via 
> javascript and if the hash process happens in the client side, you can see 
> how encryption is made and reverse it . Even if javascript functions are 
> obfuscated, you just have to put some breakpoints on the javascript console 
> (browser console) and catch events until you find where the hashing process 
> is made, and perform a reverse of that function.
>
>
> Cheers.
> Chris,
>
> El mié, 23 nov 2022 a las 15:59, Arglanir () escribió:
>
>> Hello,
>> It is a big question, and does not concern only web2py. You can find 
>> people asking the same general question in StackOverflow. And the aswers 
>> are generic : The most important is the TLS communication.
>>
>> https://security.stackexchange.com/questions/110415/is-it-ok-to-send-plain-text-password-over-https
>>  
>> (and see linked duplicate questions)
>> Do you know any website that does hash the password client-side ?
>> Arglanir
>>
>>
>> Le mardi 22 novembre 2022 à 01:20:06 UTC+1, silvia...@gmail.com a écrit :
>>
>>> Thank you, but do you have any suggestions what to do cause our 
>>> cybersecurity officer keeps complaining about that wo I need change some 
>>> settings in web2py or do you have an idea how I can sort it out ? 
>>>
>>> Kind regards
>>>
>>> Am Di., 22. Nov. 2022 um 02:23 Uhr schrieb Christian Varas <
>>> chriii...@gmail.com>:
>>>
>>>> Hi, 
>>>> It's OK, it's the way it works, If you put s local proxy like burp and 
>>>> then you go and capture traffic, it is ok that you can see clear text data 
>>>> because burp proxy puts their own certificate between client and backend, 
>>>> because of that burp proxy can decrypt and show you clear text data. If 
>>>> you 
>>>> sniff with a packet capture like wireshark, you will see everything is 
>>>> encrypted.
>>>>
>>>> Salting your password/username before sending it is not really secure, 
>>>> because hashing the username/password before sending, would need to be 
>>>> performed in the browser via javascript and if the hash process happens in 
>>>> the client side, you can see how encryption is made and reverse it .
>>>>
>>>> Cheers.
>>>> Chris.
>>>>
>>>> El lun, 21 nov 2022 a las 5:01, Silvian “Top 10 Answers” Cedru (<
>>>> silvia...@gmail.com>) escribió:
>>>>
>>>>> Its weird why does web2py do not salt username and password before 
>>>>> sending it ?
>>>>>
>>>>> Silvian Cedru schrieb am Montag, 21. November 2022 um 09:25:05 UTC+7:
>>>>>
>>>>>> Here is a screenshot after sniffing the network and it is weird since 
>>&g

Re: [web2py] 404 error page

2022-11-22 Thread SilvianTop 10 AnswersCedru
I put it in the folder where my application is in so 
web2py/applications/myapp/routes.py

that is where I put it in 
muratkas...@gmail.com schrieb am Dienstag, 22. November 2022 um 15:55:25 
UTC+7:

> Hi Silvian,
> 1. Can you try to copy the test.html into "static" folder like :  
> routes_onerror = [('myapp/404', '/myapp/static/test.html')]
> 2. Also could you check the location of the routes.py if it is on the same 
> folder with web2py.py?
> Best,
> Murat.
>
>
> Silvian “Top 10 Answers” Cedru , 22 Kas 2022 Sal, 
> 11:03 tarihinde şunu yazdı:
>
>> Yeah tried it I put this piece of code in the route.py that is in my app 
>> root folder
>>
>> routes_onerror = [('myapp/404', '/myapp/views/test.html')]
>>
>>
>> still nothing happens I get invalid request instead of going to my 404 
>> page 
>>
>> muratkas...@gmail.com schrieb am Dienstag, 22. November 2022 um 14:17:13 
>> UTC+7:
>>
>>> Hi,
>>> May be this page gives you a clue:
>>>
>>> http://www.web2py.com/books/default/chapter/34/04/the-core#Routes-on-error
>>> Best,
>>> Murat.
>>>
>>>
>>>
>>> Silvian “Top 10 Answers” Cedru , 22 Kas 2022 Sal, 
>>> 10:08 tarihinde şunu yazdı:
>>>
>>>> Is there a way if a site is not existing to display a custom error page 
>>>> I was looking in the docs but I could not find anything .
>>>>
>>>> This is how it looks now :
>>>>
>>>>
>>>> -- 
>>>> 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+un...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/web2py/a65fd795-c8f4-40b0-b911-a1096761dd79n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/web2py/a65fd795-c8f4-40b0-b911-a1096761dd79n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> 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+un...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/47e1dc44-53f9-48dc-a255-dd9adcc32e99n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/web2py/47e1dc44-53f9-48dc-a255-dd9adcc32e99n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/031f0979-7d8c-4ef0-92b9-2b11ffea970bn%40googlegroups.com.


Re: [web2py] 404 error page

2022-11-22 Thread SilvianTop 10 AnswersCedru
Yeah tried it I put this piece of code in the route.py that is in my app 
root folder

routes_onerror = [('myapp/404', '/myapp/views/test.html')]


still nothing happens I get invalid request instead of going to my 404 page 

muratkas...@gmail.com schrieb am Dienstag, 22. November 2022 um 14:17:13 
UTC+7:

> Hi,
> May be this page gives you a clue:
> http://www.web2py.com/books/default/chapter/34/04/the-core#Routes-on-error
> Best,
> Murat.
>
>
>
> Silvian “Top 10 Answers” Cedru , 22 Kas 2022 Sal, 
> 10:08 tarihinde şunu yazdı:
>
>> Is there a way if a site is not existing to display a custom error page I 
>> was looking in the docs but I could not find anything .
>>
>> This is how it looks now :
>>
>>
>> -- 
>> 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+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/a65fd795-c8f4-40b0-b911-a1096761dd79n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/web2py/a65fd795-c8f4-40b0-b911-a1096761dd79n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/47e1dc44-53f9-48dc-a255-dd9adcc32e99n%40googlegroups.com.


[web2py] 404 error page

2022-11-21 Thread SilvianTop 10 AnswersCedru
Is there a way if a site is not existing to display a custom error page I 
was looking in the docs but I could not find anything .

This is how it looks now :


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a65fd795-c8f4-40b0-b911-a1096761dd79n%40googlegroups.com.


[web2py] Re: Issue password in plain text before sending when login in the website via HTTPS

2022-11-21 Thread SilvianTop 10 AnswersCedru
Its weird why does web2py do not salt username and password before sending 
it ?

Silvian Cedru schrieb am Montag, 21. November 2022 um 09:25:05 UTC+7:

> Here is a screenshot after sniffing the network and it is weird since it 
> has HTTPS I thought you could not sniff out the password when someone logs 
> ins so I need to salt or Hash it but I am not sure where I find the file 
> and what to change . Would be awesome if someone could help.
>
> Silvian Cedru schrieb am Donnerstag, 17. November 2022 um 11:05:34 UTC+7:
>
>> Hello everyone ,
>>
>> I just found out that when you login in my application my password gets 
>> send in plain text even I thought it gets hashed does someone know a 
>> solution how to salt or hash the password before sending ?
>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3b380bb2-b908-4e8e-be5a-bc465196c38fn%40googlegroups.com.


[web2py] Issue password in plain text before sending when login in the website via HTTPS

2022-11-16 Thread SilvianTop 10 AnswersCedru
Hello everyone ,

I just found out that when you login in my application my password gets 
send in plain text even I thought it gets hashed does someone know a 
solution how to salt or hash the password before sending ?


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4fd94765-17c5-408a-aadc-3426f2abcbb1n%40googlegroups.com.


[web2py] Reset Password does not send email

2022-11-10 Thread SilvianTop 10 AnswersCedru
Hello everyone,

I want to reset password in my application if someone forgets it but it 
does not seem to work I dont get how to setup the mail server below are my 
two models I dont know what I need to configure that it works.


#Email Server Configuration
models/db.py

mail = auth.settings.mailer
mail.settings.server =  'logging' or 'smtp.gmail.com:587'
mail.settings.sender = 'si@gmail.com'
mail.settings.login = True


apllication/applicationname/models/db.py

# configure email
# -
mail = auth.settings.mailer
mail.settings.server = 'logging' if request.is_local else 
configuration.get('smtp.server')
mail.settings.sender = configuration.get('smtp.sender')
mail.settings.login = configuration.get('smtp.login')
mail.settings.tls = configuration.get('smtp.tls') or False
mail.settings.ssl = configuration.get('smtp.ssl') or False




-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a28f093e-7d96-4490-9284-530fa869faf9n%40googlegroups.com.


Re: [web2py] Re: Issue with admin acess web2py after deploying on a live server

2022-11-07 Thread SilvianTop 10 AnswersCedru
Thanks for the Help appreciate it.

Massimiliano schrieb am Montag, 7. November 2022 um 17:48:58 UTC+7:

> The password is stored in "parameters_8000.py" that you can change with
>
> python web2py.py -a 'your password'
>
> http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options
>
>
>
> Il giorno lun 7 nov 2022 alle ore 11:17 Silvian “Top 10 Answers” Cedru <
> silvia...@gmail.com> ha scritto:
>
>> I manage to acess it via localhost but now I cant get in there anymore 
>> since I dont know what password was assign to web2py krub 
>> Silvian Cedru schrieb am Montag, 7. November 2022 um 15:59:23 UTC+7:
>>
>>> Hello everyone,
>>>
>>> I finally managed to deploy web2py on Windows Server 2019 but the issue 
>>> is I can not access the admin panel for some reason for example my ip is 
>>> 162.25.1.204 and I have a an application called calculator I went to 
>>> http://172.25.1.204/calculator/appadmin and I get a 500 error does 
>>> someone know what settings I need change to change the admin password as 
>>> well  ? 
>>>
>>>
>>> Kind Regards
>>>
>>> -- 
>> 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+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/5ee891d2-e9f1-465c-88bb-c3a939817374n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/web2py/5ee891d2-e9f1-465c-88bb-c3a939817374n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Massimiliano
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c3ed8408-f746-4299-a1fa-3dff3dfc0728n%40googlegroups.com.


[web2py] Re: Issue with admin acess web2py after deploying on a live server

2022-11-07 Thread SilvianTop 10 AnswersCedru
I manage to acess it via localhost but now I cant get in there anymore 
since I dont know what password was assign to web2py krub 
Silvian Cedru schrieb am Montag, 7. November 2022 um 15:59:23 UTC+7:

> Hello everyone,
>
> I finally managed to deploy web2py on Windows Server 2019 but the issue is 
> I can not access the admin panel for some reason for example my ip is 
> 162.25.1.204 and I have a an application called calculator I went to 
> http://172.25.1.204/calculator/appadmin and I get a 500 error does 
> someone know what settings I need change to change the admin password as 
> well  ? 
>
>
> Kind Regards
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/5ee891d2-e9f1-465c-88bb-c3a939817374n%40googlegroups.com.


[web2py] Issue with admin acess web2py after deploying on a live server

2022-11-07 Thread SilvianTop 10 AnswersCedru
Hello everyone,

I finally managed to deploy web2py on Windows Server 2019 but the issue is 
I can not access the admin panel for some reason for example my ip is 
162.25.1.204 and I have a an application called calculator I went 
to http://172.25.1.204/calculator/appadmin and I get a 500 error does 
someone know what settings I need change to change the admin password as 
well  ? 


Kind Regards

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/abcd7023-1420-4bfb-94aa-333a4afea578n%40googlegroups.com.


[web2py] Re: Server Deployement issue

2022-10-26 Thread SilvianTop 10 AnswersCedru
Yeah the book example is the issue I tried it with apache with the script 
after the script ran trough I run in an issue that my apache does not work 
anymore I dont know If I need to maybe change some things in the config 
file the ngnix setup I will try out today and see how that works

Kind Regards


snide...@gmail.com schrieb am Donnerstag, 27. Oktober 2022 um 04:46:50 
UTC+7:

> On Tuesday, October 25, 2022 at 10:57:55 PM UTC-7 silvia...@gmail.com 
> wrote:
>
>> Hey snide,
>>
>> do you mind helping me setting it up in an ngnix enviromenet I would also 
>> pay you somthing for your time 
>>
>>
> Pay sounds good to me, but I'm not sure you'd get your money's worth.  
> It's been a while since I did the nginx set up for work, and my personal 
> nginx set up is currently waiting for me to add web2py apps; it currently 
> is serving my old old static website with mostly handcrafted html.
>
>  I don't know f I can get to mine  before next week, and I'd want to do 
> that as a warm-up.
>
> Are you not finding the book's example clear enough?
>
> /dps
>
> snide...@gmail.com schrieb am Mittwoch, 12. Oktober 2022 um 06:26:27 
>> UTC+7:
>>
>>> On Wednesday, October 5, 2022 at 9:23:07 PM UTC-7 silvia...@gmail.com 
>>> wrote:
>>>
 I forgot to add that I want to deployment my web2py on a local network 
 to run it as an Intranet.


>>> That shouldn't be an issue.  But I can only offer limited help on 
>>> whatever *is* the issue because I use the preferred nginx environment.
>>>
>>> /dps
>>>  
>>>
 Silvian Cedru schrieb am Donnerstag, 6. Oktober 2022 um 10:40:07 UTC+7:

> Hello everyone,
>
> I got an issue eveytimeI want to do the One step production 
> deployment from 
> http://web2py.com/books/default/chapter/29/13/deployment-recipes 
>
> Restarting apache2 and then failed do I need to setup something before 
> I use just the deployment code cause I just copy and paste it or are 
> there 
> other ways to deploy ? 
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6cc0a432-6bde-46ba-8fc9-053135083d0an%40googlegroups.com.


[web2py] Re: Server Deployement issue

2022-10-25 Thread SilvianTop 10 AnswersCedru
Hey snide,

do you mind helping me setting it up in an ngnix enviromenet I would also 
pay you somthing for your time 

snide...@gmail.com schrieb am Mittwoch, 12. Oktober 2022 um 06:26:27 UTC+7:

> On Wednesday, October 5, 2022 at 9:23:07 PM UTC-7 silvia...@gmail.com 
> wrote:
>
>> I forgot to add that I want to deployment my web2py on a local network to 
>> run it as an Intranet.
>>
>>
> That shouldn't be an issue.  But I can only offer limited help on whatever 
> *is* the issue because I use the preferred nginx environment.
>
> /dps
>  
>
>> Silvian Cedru schrieb am Donnerstag, 6. Oktober 2022 um 10:40:07 UTC+7:
>>
>>> Hello everyone,
>>>
>>> I got an issue eveytimeI want to do the One step production deployment 
>>> from http://web2py.com/books/default/chapter/29/13/deployment-recipes 
>>>
>>> Restarting apache2 and then failed do I need to setup something before I 
>>> use just the deployment code cause I just copy and paste it or are there 
>>> other ways to deploy ? 
>>>
>>>
>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/22eeabdd-2514-4def-90a6-ae81d611ec18n%40googlegroups.com.


[web2py] Re: File Upload there is a little text I want to hide

2022-10-25 Thread SilvianTop 10 AnswersCedru

Thanks anyway figured it out was a line of code in the controller
snide...@gmail.com schrieb am Freitag, 21. Oktober 2022 um 23:05:32 UTC+7:

> On Thursday, October 20, 2022 at 2:16:42 AM UTC-7 silvia...@gmail.com 
> wrote:
>
>> Hello everyone ,
>>
>> I implemented a file upload in web2py and there is a little text in a 
>> span that is annoying but I can not just hide all the spans on my page any 
>> suggestions see screenshot 
>>
>
> I think we need to see some code ... at the least, your view file.
>
> /dps
>  
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/9e6c10f2-2700-41ce-a19c-d5b22a4a173bn%40googlegroups.com.


[web2py] File Upload there is a little text I want to hide

2022-10-20 Thread SilvianTop 10 AnswersCedru
Hello everyone ,

I implemented a file upload in web2py and there is a little text in a span 
that is annoying but I can not just hide all the spans on my page any 
suggestions see screenshot 


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/bb5a19d3-bd21-4c80-a22c-65ff40515f21n%40googlegroups.com.


Re: [web2py] Help: Dynamic Chart.js issue

2022-10-16 Thread SilvianTop 10 AnswersCedru
Thanks a lot will have a look

muratkas...@gmail.com schrieb am Donnerstag, 13. Oktober 2022 um 19:27:16 
UTC+7:

> Hi,
>
> There is a good explanation on these links: 
> https://www.chartjs.org/docs/latest/developers/updates.html
>
> https://stackoverflow.com/questions/17354163/dynamically-update-values-of-a-chartjs-chart
>  
> and  https://codepen.io/statuswoe/pen/kQMLom
>
> I think you can call your function with ajax inside from "updateData":
>
> setInterval(function(){
> *updateData*(data);
> myNewChart.Line(data, optionsNoAnimation)
> ;}, 2000
>
> --
> Murat.
>
>
> Silvian “Top 10 Answers” Cedru , 3 Eki 2022 Pzt, 
> 06:59 tarihinde şunu yazdı:
>
>> Hello everyone,
>>
>> I want to create a dynamic chart using Chart.js with data from the 
>> database but I am not really sure how to do that . I have manager to create 
>> predefined and filled arrays but I dont know how to make it dynamic I have 
>> here my controller code
>>
>> def calc():
>> 
>> teams =  db(db.projects).select(orderby=db.projects.id)
>> rows1 = db(db.projects).select(orderby=db.projects.id)
>> rows = db(db.projects).select(orderby=db.projects.id)
>> 
>> # Calculation for total project by Teams in different 
>> developmentphases
>> construct = db(db.projects.project_devlopment_phase).select()
>> identification = 
>> db(db.projects.project_devlopment_phase=='0').select()
>> 
>> pre_feasibility= db(db.projects.project_devlopment_phase=='1' 
>> ).select()
>> feasibility= db(db.projects.project_devlopment_phase=='2' ).select()
>> understudy = pre_feasibility + feasibility
>>
>> financing = db(db.projects.project_devlopment_phase=='3' ).select()
>> implementation = db(db.projects.project_devlopment_phase=='4' 
>> ).select() 
>> under_construction = financing + implementation
>>
>> wp = db(db.projects.technology=='WP').select()
>> sp=  db(db.projects.technology=='SP').select()
>> hp = db(db.projects.technology=='HP').select()
>> bi = db(db.projects.technology=='BI').select()
>>
>> re = wp + sp + hp + bi
>>   
>> data2d = [[100, 12, 5, 2, 5], [5, 100, 10,4,1 ], [5, 8, 100, 5,6], 
>> [12,15,8,6,100]]
>> data1d = [11,5, 12,6, 5,100, 2,100]
>>
>> mylist = list(dict.fromkeys(data1d))
>>
>> return dict(mylist=mylist, team=team, datatest=datatest,  data2d=data2d 
>> ,data1d = data1d,construct=construct,rows1= rows1 ,teams=teams, rows=rows, 
>> identification=identification, understudy=understudy, 
>> under_construction=under_construction, 
>> re=re)
>>
>> -- 
>> 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+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/84192b23-cc7c-4553-ae42-baea1b88b4ben%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/web2py/84192b23-cc7c-4553-ae42-baea1b88b4ben%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/097663b3-610a-4186-bc8a-50051ba630fdn%40googlegroups.com.


[web2py] Re: Server Deployement issue

2022-10-16 Thread SilvianTop 10 AnswersCedru
Yeah I wouldnt mind using that to be honest 

snide...@gmail.com schrieb am Mittwoch, 12. Oktober 2022 um 06:26:27 UTC+7:

> On Wednesday, October 5, 2022 at 9:23:07 PM UTC-7 silvia...@gmail.com 
> wrote:
>
>> I forgot to add that I want to deployment my web2py on a local network to 
>> run it as an Intranet.
>>
>>
> That shouldn't be an issue.  But I can only offer limited help on whatever 
> *is* the issue because I use the preferred nginx environment.
>
> /dps
>  
>
>> Silvian Cedru schrieb am Donnerstag, 6. Oktober 2022 um 10:40:07 UTC+7:
>>
>>> Hello everyone,
>>>
>>> I got an issue eveytimeI want to do the One step production deployment 
>>> from http://web2py.com/books/default/chapter/29/13/deployment-recipes 
>>>
>>> Restarting apache2 and then failed do I need to setup something before I 
>>> use just the deployment code cause I just copy and paste it or are there 
>>> other ways to deploy ? 
>>>
>>>
>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/51a97df1-e785-4dd9-83a6-47fc20115e48n%40googlegroups.com.


[web2py] Re: Server Deployement issue

2022-10-05 Thread SilvianTop 10 AnswersCedru
I forgot to add that I want to deployment my web2py on a local network to 
run it as an Intranet.

Silvian Cedru schrieb am Donnerstag, 6. Oktober 2022 um 10:40:07 UTC+7:

> Hello everyone,
>
> I got an issue eveytimeI want to do the One step production deployment 
> from http://web2py.com/books/default/chapter/29/13/deployment-recipes 
>
> Restarting apache2 and then failed do I need to setup something before I 
> use just the deployment code cause I just copy and paste it or are there 
> other ways to deploy ? 
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3649421d-1591-45b4-a784-1d72cf01a470n%40googlegroups.com.


[web2py] Server Deployement issue

2022-10-05 Thread SilvianTop 10 AnswersCedru
Hello everyone,

I got an issue eveytimeI want to do the One step production deployment from 
http://web2py.com/books/default/chapter/29/13/deployment-recipes 

Restarting apache2 and then failed do I need to setup something before I 
use just the deployment code cause I just copy and paste it or are there 
other ways to deploy ? 


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/dd28c7be-2067-460f-82aa-667134f35495n%40googlegroups.com.


[web2py] Help: Dynamic Chart.js issue

2022-10-02 Thread SilvianTop 10 AnswersCedru
Hello everyone,

I want to create a dynamic chart using Chart.js with data from the database 
but I am not really sure how to do that . I have manager to create 
predefined and filled arrays but I dont know how to make it dynamic I have 
here my controller code

def calc():

teams =  db(db.projects).select(orderby=db.projects.id)
rows1 = db(db.projects).select(orderby=db.projects.id)
rows = db(db.projects).select(orderby=db.projects.id)

# Calculation for total project by Teams in different developmentphases
construct = db(db.projects.project_devlopment_phase).select()
identification = db(db.projects.project_devlopment_phase=='0').select()

pre_feasibility= db(db.projects.project_devlopment_phase=='1' ).select()
feasibility= db(db.projects.project_devlopment_phase=='2' ).select()
understudy = pre_feasibility + feasibility

financing = db(db.projects.project_devlopment_phase=='3' ).select()
implementation = db(db.projects.project_devlopment_phase=='4' 
).select() 
under_construction = financing + implementation

wp = db(db.projects.technology=='WP').select()
sp=  db(db.projects.technology=='SP').select()
hp = db(db.projects.technology=='HP').select()
bi = db(db.projects.technology=='BI').select()

re = wp + sp + hp + bi
  
data2d = [[100, 12, 5, 2, 5], [5, 100, 10,4,1 ], [5, 8, 100, 5,6], 
[12,15,8,6,100]]
data1d = [11,5, 12,6, 5,100, 2,100]

mylist = list(dict.fromkeys(data1d))
   
return dict(mylist=mylist, team=team, datatest=datatest,  data2d=data2d 
,data1d = data1d,construct=construct,rows1= rows1 ,teams=teams, rows=rows, 
identification=identification, understudy=understudy, 
under_construction=under_construction, 
re=re)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/84192b23-cc7c-4553-ae42-baea1b88b4ben%40googlegroups.com.


[web2py] Re: I have two form submit buttons but I only want one is it possible to hide the other one ?

2022-09-06 Thread SilvianTop 10 AnswersCedru
Sorry about that this would be the full code 


{{extend 'project/test.html'}}
{{include 'web2py_ajax.html'}}



  
  
  Update
  

  

  

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.form-control {
  width: fit-content;
  width: auto;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: rgb(233,105, 61);
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.header {
  padding: 60px;
  text-align: center;
  background: #E9693D;
  color: white;
  font-size: 30px;
}
  

  



  Overview
  Team
  Third 
Parties
  Activity


{{=form.custom.begin}}


  General
  
  Project Name {{=form.custom.widget.project_name}}
  Project Description 
{{=form.custom.widget.project_description}} 
  Project Country {{=form.custom.widget.project_country}}
  Equity Share{{=form.custom.widget.equity_share}}
  Strategy Initiative{{=form.custom.widget.strategy_initiative}}
  
  Technical Data
  
  Project Technology {{=form.custom.widget.technology}}
  Project Capacity {{=form.custom.widget.capacity_mw}}
  
  Development
  
  Project Development Phase 
{{=form.custom.widget.project_devlopment_phase}}
  Project Initiated {{=form.custom.widget.initiated}}
  Project Expected COD {{=form.custom.widget.expected_cod}}
  Project Status {{=form.custom.widget.status}}
 
  Development
  BD Team{{=form.custom.widget.bd_team}}
  BD Manager{{=form.custom.widget.bd_manager}}


  
 Offtaker {{=form.custom.widget.offtaker}} 
 Partner {{=form.custom.widget.partner}}



  {{if len(activities_project):}}
Activity 


{{for activity in activities_project:}}
  {{=projects.project_name}} says {{=activity.body}} Posted 
on {{=activity.created_on}} by {{=activity.created_by.first_name}}
{{=activity.created_by.last_name}}
  
{{pass}}

  {{else:}}
No comments posted yet
  {{pass}}
  {{=form_activity}}

{{=form.custom.submit}}
{{=form.custom.end}}
   
 

 

 


  function tab(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
  
for (i = 0; i < tabcontent.length; i++) {
  tabcontent[i].style.display = "none";
}
  
tablinks = document.getElementsByClassName("tablinks");
  
for (i = 0; i < tablinks.length; i++) {
  tablinks[i].className = tablinks[i].className.replace(" active", 
"");
}
  
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
  }

  document.getElementById("defaultOpen").click();




  



snide...@gmail.com schrieb am Dienstag, 6. September 2022 um 13:21:41 UTC+7:

> On Sunday, September 4, 2022 at 8:00:25 PM UTC-7 silvia...@gmail.com 
> wrote:
>
>> Hello everyone, I think I have an issue that can not be resolved that 
>> easy to be quite honest I have a custom form and an post form on the same 
>> page my issue is I think I made a mistake with the design since it is all 
>> in between tabs see screenshot attached.
>>
>> So my question would be is there a better solution or should I restyle 
>> the whole page ? 
>>
>>
> In the code below, I don't see where you start the form.
>  
>
>> Here is the code aswell for reference :
>>
>> 
>>   {{if len(activities_project):}}
>> Activity 
>> 
>> 
>> {{for activity in activities_project:}}
>>   {{=projects.project_name}} says {{=activity.body}} Posted 
>> on {{=activity.created_on}} by {{=activity.created_by.first_name}}
>> {{=activity.created_by.last_name}}
>>   
>> {{pass}}
>> 
>>   {{else:}}
>> No comments posted yet
>>   {{pass}}
>>   {{=form_activity}}
>> 
>> {{=form.custom.submit}}
>> {{=form.custom.end}}
>>
>
> /dps
>  
>

-- 
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 grou