i have the virtual machine for the ERPNEXT , i am trying to change the little code to meet my needs and requirements.
so i am trying to change the UI and the javascript.
for example : lets take the Desktop folder from the Apps/Home/Desktop
there are 3 files , desktop.html , desktop.css and desktop.js
i wanted to know , which file is responsible for taking the desktop.css and desktop.js and converting them into the internal javascript and internal css
so that i can do my tweaks.
NOTE : i know that i can write the code in desktop.css and desktop.js , if i want to change the look and feel , but since i am interested in knowing which file is responsible for the conversion so that i can tweak with that module.
waiting for your favourable response.
warm regards.
Crossposting from stack overflow answer:
Check:
https://github.com/webnotes/wnframework/blob/master/public/js/wn/views/pageview.js
show method creates new wn.views.Page(name)
its init method uses wn.dom.eval and wn.dom.set_style to set js and css
FYI: https://github.com/webnotes/wnframework/blob/master/public/js/wn/dom.js
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/U-_02vNn2asJ.
For more options, visit https://groups.google.com/groups/opt_out.
Crossposting from stack overflow answer:
Check:
https://github.com/webnotes/wnframework/blob/master/public/js/wn/views/pageview.js
show method creates new wn.views.Page(name)
its init method uses wn.dom.eval and wn.dom.set_style to set js and css
FYI: https://github.com/webnotes/wnframework/blob/master/public/js/wn/dom.js
i have the virtual machine for the ERPNEXT , i am trying to change the little code to meet my needs and requirements.
so i am trying to change the UI and the javascript.
for example : lets take the Desktop folder from the Apps/Home/Desktop
there are 3 files , desktop.html , desktop.css and desktop.js
i wanted to know , which file is responsible for taking the desktop.css and desktop.js and converting them into the internal javascript and internal css
so that i can do my tweaks.
NOTE : i know that i can write the code in desktop.css and desktop.js , if i want to change the look and feel , but since i am interested in knowing which file is responsible for the conversion so that i can tweak with that module.
waiting for your favourable response.
warm regards.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/qpAbxz3AUxEJ.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/-B6S7S1YB9AJ.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/4VjXjinzHVMJ.
Check:
https://github.com/webnotes/wnframework/blob/master/public/js/wn/views/pageview.js
show method creates new wn.views.Page(name)
its init method uses wn.dom.eval and wn.dom.set_style to set js and css
FYI: https://github.com/webnotes/wnframework/blob/master/public/js/wn/dom.js
i checked these files but what i wanted to know is .. there must be a python file which reads the content from the .css , .js and .html and then sent them to the javascript for the rest of the processing,
i wanted to see that file.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/nyVP2C-EGU8J.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/nyVP2C-EGU8J.
def start(self):"""start a new session"""import osimport webnotesimport webnotes.utils# generate sidif webnotes.login_manager.user=='Guest':sid = 'Guest'else:sid = webnotes.generate_hash()//get the user language here
self.data['data']['lang'] = set user languageself.data['user'] = webnotes.login_manager.userself.data['sid'] = sidself.data['data']['user'] = webnotes.login_manager.userself.data['data']['session_ip'] = os.environ.get('REMOTE_ADDR')self.data['data']['last_updated'] = webnotes.utils.now()self.data['data']['session_expiry'] = self.get_expiry_period()
this is session.py
can you help me setting the user language here.
thanks
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/Ex8ddNkCKroJ.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/iWnaprs2rnoJ.
Syed,What are you trying to achieve? Only web pages are cached. Have not extended the multi-lingual feature to the website yet. That is a bit to-do and I am not sure of the architecture.For the internal Pages, you should use wn._("text") in your javascript and those texts will automatically be scraped and appropriate translations appended.If the user language changes mid-way, then they have to refresh the page.best,
On 27-Feb-2013, at 11:15 AM, Syed Qadeer <sdqad...@gmail.com> wrote:
but , if i set the user language after all the pages processing is done and cached ,then in the auth.py i am getting the user-preferred language , when everything is cached and saved,it would be of no use to me ... as it will always display the same content for english but i have some more content to be displayed for an user with different language.
On Tuesday, 26 February 2013 08:43:40 UTC+3, Syed Qadeer wrote:i have the virtual machine for the ERPNEXT , i am trying to change the little code to meet my needs and requirements.
so i am trying to change the UI and the javascript.
for example : lets take the Desktop folder from the Apps/Home/Desktop
there are 3 files , desktop.html , desktop.css and desktop.js
i wanted to know , which file is responsible for taking the desktop.css and desktop.js and converting them into the internal javascript and internal css
so that i can do my tweaks.
NOTE : i know that i can write the code in desktop.css and desktop.js , if i want to change the look and feel , but since i am interested in knowing which file is responsible for the conversion so that i can tweak with that module.
waiting for your favourable response.
warm regards.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/X5DSoCL-rrAJ.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/qvTUtmkHOigJ.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/NeaWq3_p4w4J.