@@ -1,8 +1,8 @@ | |||
## wnframework | |||
## frappe | |||
Full-stack web application framework that uses Python/MySql on the server side and a tightly integrated client side library. Primarily built for erpnext. | |||
Projects: [erpnext](http://erpnext.org) | [webnotes/erpnext](https://github.com/webnotes/erpnext) | |||
Projects: [erpnext](http://erpnext.org) | [frappe/erpnext](https://github.com/frappe/erpnext) | |||
## Setup | |||
@@ -11,10 +11,10 @@ To start a new project, in the application root: | |||
Install: | |||
1. Go to the project folder | |||
1. Install webnotes and your app: | |||
1. Install frappe and your app: | |||
$ git clone git@github.com:webnotes/wnframework lib | |||
$ git clone git@github.com:webnotes/[your app] app | |||
$ git clone git@github.com:frappe/frappe lib | |||
$ git clone git@github.com:frappe/[your app] app | |||
$ lib/wnf.py --make_conf | |||
$ lib/wnf.py --reinstall | |||
$ lib/wnf.py --build | |||
@@ -32,4 +32,4 @@ enjoy! | |||
## License | |||
wnframework is freely available to use under the MIT License | |||
frappe is freely available to use under the MIT License |
@@ -132,7 +132,7 @@ def get_js(src): | |||
code = srcfile.read() | |||
if frappe.local.lang != "en": | |||
code += "\n\n$.extend(wn._messages, {})".format(json.dumps(\ | |||
code += "\n\n$.extend(frappe._messages, {})".format(json.dumps(\ | |||
frappe.get_lang_dict("jsfile", contentpath))) | |||
return code | |||
@@ -1 +1 @@ | |||
Core module contains the models required for the basic functioning of wnframework including DocType, Profile (user), Role and others. | |||
Core module contains the models required for the basic functioning of frappe including DocType, Profile (user), Role and others. |
@@ -49,8 +49,8 @@ class DocType: | |||
# js | |||
if not os.path.exists(path + '.js'): | |||
with open(path + '.js', 'w') as f: | |||
f.write("""wn.pages['%s'].onload = function(wrapper) { | |||
wn.ui.make_app_page({ | |||
f.write("""frappe.pages['%s'].onload = function(wrapper) { | |||
frappe.ui.make_app_page({ | |||
parent: wrapper, | |||
title: '%s', | |||
single_column: true | |||
@@ -112,7 +112,7 @@ | |||
}, | |||
{ | |||
"depends_on": "eval:doc.report_type==\"Query Report\"", | |||
"description": "JavaScript Format: wn.query_reports['REPORTNAME'] = {}", | |||
"description": "JavaScript Format: frappe.query_reports['REPORTNAME'] = {}", | |||
"doctype": "DocField", | |||
"fieldname": "javascript", | |||
"fieldtype": "Code", | |||
@@ -15,7 +15,7 @@ from frappe.utils import * | |||
class Document: | |||
""" | |||
The wn(meta-data)framework equivalent of a Database Record. | |||
The frappe(meta-data)framework equivalent of a Database Record. | |||
Stores,Retrieves,Updates the record in the corresponding table. | |||
Runs the triggers required. | |||
@@ -216,11 +216,11 @@ div#freeze { | |||
} | |||
/* form */ | |||
.wn-editor { | |||
.frappe-editor { | |||
cursor: text; | |||
} | |||
.wn-editor img { | |||
.frappe-editor img { | |||
max-width: 100%; | |||
} | |||
@@ -4,7 +4,7 @@ | |||
<meta charset="utf-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<title>{{ title }}</title> | |||
<meta name="generator" content="wnframework"> | |||
<meta name="generator" content="frappe"> | |||
<script type="text/javascript" src="/assets/frappe/js/lib/jquery/jquery.min.js"></script> | |||
<link rel="shortcut icon" href="{{ favicon or "" }}" type="image/x-icon"> | |||
@@ -34,7 +34,7 @@ | |||
{%- endif %} | |||
</a></li> | |||
{%- endif -%} | |||
<li><span class="wn-timestamp" data-timestamp="{{ post.creation }}"></span></li> | |||
<li><span class="frappe-timestamp" data-timestamp="{{ post.creation }}"></span></li> | |||
<li>by <span itemprop="author">{{ post.first_name or "" }} {{ post.last_name or "" }}</span></li> | |||
<li class="edit-post pull-right hide" data-owner="{{ post.owner }}"> | |||
<a class="text-muted" href="{{ edit_url }}">[edit]</a> | |||
@@ -4,7 +4,7 @@ | |||
<meta charset="utf-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<title>Print Format</title> | |||
<meta name="generator" content="wnframework"> | |||
<meta name="generator" content="frappe"> | |||
<style> | |||
{{ css }} | |||
</style> | |||
@@ -13,7 +13,7 @@ Contributing: | |||
# loading | |||
# doctype, page, report | |||
# boot(startup) | |||
# wn.require | |||
# frappe.require | |||
# frappe._ | |||
import frappe, os, re, codecs, json | |||
@@ -71,7 +71,7 @@ def get_dict(fortype, name=None): | |||
def add_lang_dict(code): | |||
messages = extract_messages_from_code(code) | |||
code += "\n\n$.extend(wn._messages, %s)" % json.dumps(make_dict_from_messages(messages)) | |||
code += "\n\n$.extend(frappe._messages, %s)" % json.dumps(make_dict_from_messages(messages)) | |||
return code | |||
def make_dict_from_messages(messages, full_dict=None): | |||
@@ -86,7 +86,7 @@ def make_dict_from_messages(messages, full_dict=None): | |||
return out | |||
def get_lang_js(fortype, name): | |||
return "\n\n$.extend(wn._messages, %s)" % json.dumps(get_dict(fortype, name)) | |||
return "\n\n$.extend(frappe._messages, %s)" % json.dumps(get_dict(fortype, name)) | |||
def get_full_dict(lang): | |||
if lang == "en": return {} | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,سوف تظهر أيقونة على زر | |||
"If image is selected, color will be ignored (attach first)",إذا تم تحديد الصورة، سيتم تجاهل اللون (إرفاق الأولى) | |||
"If not, create a",إن لم يكن، إنشاء | |||
"If the 'territory' Link Field exists, it will give you an option to select it",إذا حقل 'الأرض' لينك موجود، وسوف تعطيك الخيار لتحديده | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>",إذا هذه التعليمات حيث لم تكن مفيدة ، يرجى إضافة في اقتراحاتكم في <a href='https://github.com/webnotes/wnframework/issues'> جيثب قضايا < / A> | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>",إذا هذه التعليمات حيث لم تكن مفيدة ، يرجى إضافة في اقتراحاتكم في <a href='https://github.com/frappe/frappe/issues'> جيثب قضايا < / A> | |||
"If you set this, this Item will come in a drop-down under the selected parent.",إذا قمت بتعيين هذا ، فإن هذا البند تأتي في قائمة منسدلة تحت الأصل المحدد . | |||
Image,صورة | |||
Image Link,رابط الصورة | |||
@@ -404,7 +404,7 @@ Is Single,هو واحدة | |||
Is Standard,هو معيار | |||
Is Submittable,هو Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},جافا سكريبت الصيغة: wn.query_reports [' REPORTNAME '] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},جافا سكريبت الصيغة: frappe.query_reports [' REPORTNAME '] = { } | |||
Javascript,جافا سكريبت | |||
Javascript to append to the head section of the page.,جافا سكريبت لإلحاق رئيس قسم من الصفحة. | |||
Keep a track of all communications,حفاظ على تعقب من كافة الاتصالات | |||
@@ -362,7 +362,7 @@ Icon will appear on the button,Icon wird auf der Schaltfläche angezeigt | |||
"If image is selected, color will be ignored (attach first)","Wenn das Bild ausgewählt ist, wird die Farbe ignoriert (legen zuerst) werden" | |||
"If not, create a","Wenn nicht, erstellen Sie eine" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Wenn das ""Gebiet"" Link Field existiert, wird es geben Sie eine Option, um sie auszuwählen" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Werden diese Hinweise nicht geholfen , wo , fügen Sie bitte Ihre Vorschläge an <a href='https://github.com/webnotes/wnframework/issues'> GitHub Probleme </ a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Werden diese Hinweise nicht geholfen , wo , fügen Sie bitte Ihre Vorschläge an <a href='https://github.com/frappe/frappe/issues'> GitHub Probleme </ a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Wenn Sie diese Einstellung , wird dieser Artikel in einer Drop-Down unter der ausgewählten Mutter kommen ." | |||
Image,Bild | |||
Image Link,Link zum Bild | |||
@@ -398,7 +398,7 @@ Is Single,Ist Single | |||
Is Standard,Ist Standard | |||
Is Submittable,Ist Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript- Format: wn.query_reports [' REPORT '] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript- Format: frappe.query_reports [' REPORT '] = {} | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,"Javascript, um den Kopfteil der Seite anhängen." | |||
Keep a track of all communications,Halten Sie einen Überblick über alle Kommunikations- | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Θα εμφανιστεί το εικονίδιο | |||
"If image is selected, color will be ignored (attach first)","Εάν η εικόνα έχει επιλεγεί, το χρώμα θα πρέπει να αγνοηθεί (επισυνάψετε πρώτα)" | |||
"If not, create a","Αν όχι, να δημιουργηθεί ένα" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Αν πεδίου Link το «έδαφος» υπάρχει, αυτό θα σας δώσει μια επιλογή για να επιλέξετε" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Εάν αυτές οι οδηγίες , όπου δεν είναι χρήσιμο , παρακαλούμε να προσθέσετε δικές σας προτάσεις στο href='https://github.com/webnotes/wnframework/issues'> <a GitHub Θέματα < / a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Εάν αυτές οι οδηγίες , όπου δεν είναι χρήσιμο , παρακαλούμε να προσθέσετε δικές σας προτάσεις στο href='https://github.com/frappe/frappe/issues'> <a GitHub Θέματα < / a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Αν ορίσετε αυτό, αυτό το στοιχείο θα έρθει σε ένα drop-down κάτω από τον επιλεγμένο γονέα." | |||
Image,Εικόνα | |||
Image Link,Σύνδεσμος εικόνας | |||
@@ -404,7 +404,7 @@ Is Single,Είναι Single | |||
Is Standard,Είναι πρότυπο | |||
Is Submittable,Είναι Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript Format: wn.query_reports ['REPORTNAME'] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript Format: frappe.query_reports ['REPORTNAME'] = {} | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript για να προσθέσετε στο τμήμα της κεφαλής της σελίδας. | |||
Keep a track of all communications,Κρατήστε ένα κομμάτι του συνόλου των επικοινωνιών | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Aparecerá el icono en el botón | |||
"If image is selected, color will be ignored (attach first)","Si se selecciona una imagen, el color será ignorado (adjunte primero)" | |||
"If not, create a","Si no, crea una" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Si el campo de 'territorio' Link existe, se le dará la opción de seleccionar" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Si estas instrucciones cuando no es útil, por favor, añadir sus sugerencias en <a href='https://github.com/webnotes/wnframework/issues'> GitHub Issues < / a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Si estas instrucciones cuando no es útil, por favor, añadir sus sugerencias en <a href='https://github.com/frappe/frappe/issues'> GitHub Issues < / a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Si establece este , este artículo entrará en un menú desplegable bajo la matriz seleccionada." | |||
Image,Imagen | |||
Image Link,Enlace a la imagen | |||
@@ -404,7 +404,7 @@ Is Single,Es el único | |||
Is Standard,Es el estándar | |||
Is Submittable,Es Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript Formato: wn.query_reports [' REPORTNAME '] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript Formato: frappe.query_reports [' REPORTNAME '] = { } | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript para anexar a la sección principal de la página. | |||
Keep a track of all communications,Mantenga un registro de todas las comunicaciones | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Icône apparaîtra sur le bouton | |||
"If image is selected, color will be ignored (attach first)","Si l'image est sélectionnée, la couleur sera ignoré (joindre en premier)" | |||
"If not, create a","Sinon, créez un" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Si le champ Lien du «territoire» existe, il vous donnera une option pour la sélectionner" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Si ces instructions où pas utile , s'il vous plaît ajouter vos suggestions à l'adresse <a href='https://github.com/webnotes/wnframework/issues'> GitHub questions </ a >" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Si ces instructions où pas utile , s'il vous plaît ajouter vos suggestions à l'adresse <a href='https://github.com/frappe/frappe/issues'> GitHub questions </ a >" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Si vous définissez cette , cet article va venir dans un menu déroulant dans le cadre du parent sélectionné ." | |||
Image,Image | |||
Image Link,Lien vers l'image | |||
@@ -404,7 +404,7 @@ Is Single,Est célibataire | |||
Is Standard,Est-standard | |||
Is Submittable,Est-Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript Format : wn.query_reports [' REPORTNAME '] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript Format : frappe.query_reports [' REPORTNAME '] = {} | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript à ajouter à la section head de la page. | |||
Keep a track of all communications,Gardez une trace de toutes les communications | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,आइकन बटन पर दिखाई द | |||
"If image is selected, color will be ignored (attach first)","यदि छवि का चयन किया गया है, रंग (1 देते हैं) पर ध्यान नहीं दिया जाएगा" | |||
"If not, create a","यदि नहीं, तो एक बनाने के लिए" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","यदि 'क्षेत्र' लिंक क्षेत्र में मौजूद है, यह आप एक का चयन करने के लिए यह विकल्प दे देंगे" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","इन निर्देशों जहां मददगार नहीं हैं, <a href='https://github.com/webnotes/wnframework/issues'> GitHub मुद्दे </ a> पर अपने सुझाव में जोड़ने के लिए कृपया" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","इन निर्देशों जहां मददगार नहीं हैं, <a href='https://github.com/frappe/frappe/issues'> GitHub मुद्दे </ a> पर अपने सुझाव में जोड़ने के लिए कृपया" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","आप यह निर्धारित करते हैं, इस आइटम का चयन माता पिता के नीचे एक ड्रॉप डाउन में आ जाएगा ." | |||
Image,छवि | |||
Image Link,फोटो लिंक | |||
@@ -404,7 +404,7 @@ Is Single,एकल | |||
Is Standard,मानक है | |||
Is Submittable,Submittable है | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},जावास्क्रिप्ट स्वरूप: wn.query_reports [' REPORTNAME '] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},जावास्क्रिप्ट स्वरूप: frappe.query_reports [' REPORTNAME '] = {} | |||
Javascript,जावास्क्रिप्ट | |||
Javascript to append to the head section of the page.,जावास्क्रिप्ट पृष्ठ के सिर अनुभाग को संलग्न करने के लिए. | |||
Keep a track of all communications,सभी संचार के एक ट्रैक रखें | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Ikona će se pojaviti na gumb | |||
"If image is selected, color will be ignored (attach first)","Ako je slika odabrana, boja će biti ignoriran (priložiti prvi)" | |||
"If not, create a","Ako ne, stvoriti" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Ako 'teritoriju' Link Polje postoji, to će vam dati mogućnost da ga odabrali" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Ako ove upute gdje nije korisno , dodajte u svojim prijedlozima na <a href='https://github.com/webnotes/wnframework/issues'> GitHub pitanja < / a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Ako ove upute gdje nije korisno , dodajte u svojim prijedlozima na <a href='https://github.com/frappe/frappe/issues'> GitHub pitanja < / a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Ako postavite ovo , ova stavka će doći u padajućem okviru odabranog roditelja ." | |||
Image,Slika | |||
Image Link,Slika Link | |||
@@ -404,7 +404,7 @@ Is Single,Je Samac | |||
Is Standard,Je Standardni | |||
Is Submittable,Je Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript format : wn.query_reports [ ' REPORTNAME ' ] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript format : frappe.query_reports [ ' REPORTNAME ' ] = { } | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript da doda glave dijelu stranice. | |||
Keep a track of all communications,Držite praćenje svih komunikacija | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Icona apparirà sul tasto | |||
"If image is selected, color will be ignored (attach first)","Se si seleziona un'immagine, il colore viene ignorata (allegare prima)" | |||
"If not, create a","Se non, creare un" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Se il 'territorio' Link campo esiste, che vi darà la possibilità di selezionare la" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Se queste istruzioni se non disponibile, si prega di aggiungere nei vostri suggerimenti all'indirizzo <a href='https://github.com/webnotes/wnframework/issues'> GitHub Issues < / a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Se queste istruzioni se non disponibile, si prega di aggiungere nei vostri suggerimenti all'indirizzo <a href='https://github.com/frappe/frappe/issues'> GitHub Issues < / a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Se si imposta questo, questo articolo verrà in una discesa sotto il genitore selezionato ." | |||
Image,Immagine | |||
Image Link,Immagine link | |||
@@ -404,7 +404,7 @@ Is Single,È single | |||
Is Standard,È standard | |||
Is Submittable,È Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},Formato JavaScript: wn.query_reports ['REPORTNAME'] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},Formato JavaScript: frappe.query_reports ['REPORTNAME'] = {} | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript da aggiungere alla sezione head della pagina. | |||
Keep a track of all communications,Mantenere una traccia di tutte le comunicazioni | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Pictogram verschijnt op de knop | |||
"If image is selected, color will be ignored (attach first)","Als beeld is geselecteerd, wordt kleur worden genegeerd (voeg als eerste)" | |||
"If not, create a","Zo niet, maak dan een" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Als de 'grondgebied' Link Field bestaat, zal het u een optie om deze te selecteren" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Als deze aanwijzingen waar niet behulpzaam , gelieve toe te voegen in uw suggesties op <a href='https://github.com/webnotes/wnframework/issues'> GitHub Issues < / a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Als deze aanwijzingen waar niet behulpzaam , gelieve toe te voegen in uw suggesties op <a href='https://github.com/frappe/frappe/issues'> GitHub Issues < / a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Als u dit instelt , zal deze post in een drop -down onder de gekozen basismotor ." | |||
Image,Beeld | |||
Image Link,Afbeelding Link | |||
@@ -404,7 +404,7 @@ Is Single,Is Single | |||
Is Standard,Is Standaard | |||
Is Submittable,Is Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript Formaat : wn.query_reports [ ' ReportName ' ] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript Formaat : frappe.query_reports [ ' ReportName ' ] = { } | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript toe te voegen aan de head sectie van de pagina. | |||
Keep a track of all communications,Houd een spoor van alle communicatie | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,O ícone aparecerá no botão | |||
"If image is selected, color will be ignored (attach first)","Se a imagem for selecionada, a cor será ignorada (anexar primeiro)" | |||
"If not, create a","Se não, crie um(a)" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Se o campo com Link 'território' existe, ele vai te dar uma opção para selecioná-lo" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Se estas instruções , onde não é útil , por favor, adicione suas sugestões em <a href='https://github.com/webnotes/wnframework/issues'> GitHub Issues </ a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Se estas instruções , onde não é útil , por favor, adicione suas sugestões em <a href='https://github.com/frappe/frappe/issues'> GitHub Issues </ a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Se você definir isso, este item virá em um drop-down sob o pai selecionado ." | |||
Image,Imagem | |||
Image Link,Link da imagem | |||
@@ -404,7 +404,7 @@ Is Single,É único | |||
Is Standard,É Padrão | |||
Is Submittable,É enviável | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript Formato: wn.query_reports [' REPORTNAME '] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript Formato: frappe.query_reports [' REPORTNAME '] = {} | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript para acrescentar ao cabeçalho da página. | |||
Keep a track of all communications,Mantenha o controle de todas as comunicações | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Ícone aparecerá no botão | |||
"If image is selected, color will be ignored (attach first)","Se a imagem for selecionada, a cor será ignorado (anexar primeiro)" | |||
"If not, create a","Se não, crie um" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Se o campo da 'território' Link existe, ele vai te dar uma opção para selecioná-la" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Als deze aanwijzingen waar niet behulpzaam , gelieve toe te voegen in uw suggesties op <a href='https://github.com/webnotes/wnframework/issues'> GitHub Issues < / a>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Als deze aanwijzingen waar niet behulpzaam , gelieve toe te voegen in uw suggesties op <a href='https://github.com/frappe/frappe/issues'> GitHub Issues < / a>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Als u dit instelt , zal deze post in een drop -down onder de gekozen basismotor ." | |||
Image,Imagem | |||
Image Link,Link da imagem | |||
@@ -404,7 +404,7 @@ Is Single,É único | |||
Is Standard,É Padrão | |||
Is Submittable,É Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript Formaat : wn.query_reports [ ' ReportName ' ] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript Formaat : frappe.query_reports [ ' ReportName ' ] = { } | |||
Javascript,Javascript | |||
Javascript to append to the head section of the page.,Javascript para acrescentar à seção principal da página. | |||
Keep a track of all communications,Manter um controle de todas as comunicações | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,Икона ће се појавити на дуг | |||
"If image is selected, color will be ignored (attach first)","Ако је слика изабрана, боја ће бити игнорисани (приложити први)" | |||
"If not, create a","Ако не, направите" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","Ако Линк пољу "територије" постоји, она ће вам дати могућност да изаберете" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","Ако ове инструкције где не помажу , молимо вас да додате у ваше сугестије на <а хреф='хттпс://гитхуб.цом/вебнотес/внфрамеворк/иссуес'> Гитхуб питања < / а>" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","Ако ове инструкције где не помажу , молимо вас да додате у ваше сугестије на <а хреф='хттпс://гитхуб.цом/вебнотес/внфрамеворк/иссуес'> Гитхуб питања < / а>" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","Ако сте поставили ово , ова ставка ће доћи у падајући под изабраном родитеља ." | |||
Image,Слика | |||
Image Link,Слика Линк | |||
@@ -404,7 +404,7 @@ Is Single,Је Сингле | |||
Is Standard,Је стандард | |||
Is Submittable,Да ли Субмиттабле | |||
JSON,ЈСОН | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},Јава формат : вн.куери_репортс [ ' РЕПОРТНАМЕ ' ] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},Јава формат : вн.куери_репортс [ ' РЕПОРТНАМЕ ' ] = { } | |||
Javascript,Јавасцрипт | |||
Javascript to append to the head section of the page.,Јавасцрипт да додате на главе делу странице. | |||
Keep a track of all communications,Водите евиденцију о свим комуникацијама | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,ஐகான் பொத்தானை த | |||
"If image is selected, color will be ignored (attach first)","படத்தை தேர்வு செய்தால், நிறம் (முதல் இணைக்கவும்) புறக்கணிக்கப்படும்" | |||
"If not, create a","இல்லை என்றால், ஒரு உருவாக்க" | |||
"If the 'territory' Link Field exists, it will give you an option to select it","'பகுதியில்' இணைப்பு புலம் உள்ளது என்றால், அதை நீங்கள் தேர்ந்தெடுக்க ஒரு விருப்பத்தை தரும்" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>","இந்த வழிமுறைகளை அங்கு பயனுள்ளதாக இல்லை என்றால், மிக href='https://github.com/webnotes/wnframework/issues'> மகிழ்ச்சியா சிக்கல்கள் < / a> உங்கள் ஆலோசனைகளை சேர்க்க தயவு செய்து" | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>","இந்த வழிமுறைகளை அங்கு பயனுள்ளதாக இல்லை என்றால், மிக href='https://github.com/frappe/frappe/issues'> மகிழ்ச்சியா சிக்கல்கள் < / a> உங்கள் ஆலோசனைகளை சேர்க்க தயவு செய்து" | |||
"If you set this, this Item will come in a drop-down under the selected parent.","நீங்கள் இந்த அமைக்க என்றால், இந்த பொருள் தேர்வு பெற்றோர் கீழ் ஒரு துளி கீழே வரும் ." | |||
Image,படம் | |||
Image Link,படம் இணைப்பு | |||
@@ -404,7 +404,7 @@ Is Single,ஒற்றை உள்ளது | |||
Is Standard,ஸ்டாண்டர்ட் உள்ளது | |||
Is Submittable,Submittable உள்ளது | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},ஜாவா வடிவம்: wn.query_reports [' REPORTNAME '] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},ஜாவா வடிவம்: frappe.query_reports [' REPORTNAME '] = { } | |||
Javascript,ஜாவா ஸ்கிரிப்ட் | |||
Javascript to append to the head section of the page.,Javascript பக்கம் தலை பிரிவில் சேர்க்க வேண்டும். | |||
Keep a track of all communications,அனைத்து தொடர்புகளையும் ஒரு கண்காணிக்க | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,ไอคอนจะปรากฏบนปุ | |||
"If image is selected, color will be ignored (attach first)",หากภาพถูกเลือกสีจะถูกละเว้น (แนบแรก) | |||
"If not, create a",ถ้าไม่สร้าง | |||
"If the 'territory' Link Field exists, it will give you an option to select it",ถ้าฟิลด์ 'ดินแดน' แล้วก็จะให้คุณเลือกที่จะเลือก | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>",ถ้า คำแนะนำเหล่านี้ ที่ ไม่เป็นประโยชน์ โปรดเพิ่ม ใน คำแนะนำของคุณ ที่ href='https://github.com/webnotes/wnframework/issues'> <a GitHub ปัญหา </ a> | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>",ถ้า คำแนะนำเหล่านี้ ที่ ไม่เป็นประโยชน์ โปรดเพิ่ม ใน คำแนะนำของคุณ ที่ href='https://github.com/frappe/frappe/issues'> <a GitHub ปัญหา </ a> | |||
"If you set this, this Item will come in a drop-down under the selected parent.",ถ้าคุณตั้งค่า นี้ รายการ นี้ จะมาในแบบเลื่อนลง ภายใต้การ ปกครอง ที่เลือก | |||
Image,ภาพ | |||
Image Link,ลิงก์รูปภาพ | |||
@@ -404,7 +404,7 @@ Is Single,เป็นโสด | |||
Is Standard,เป็นมาตรฐาน | |||
Is Submittable,เป็น Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},รูปแบบ JavaScript : wn.query_reports [ 'ชื่อรายงาน ] = { } | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},รูปแบบ JavaScript : frappe.query_reports [ 'ชื่อรายงาน ] = { } | |||
Javascript,javascript | |||
Javascript to append to the head section of the page.,จาวาสคริปต์เพื่อผนวกกับส่วนหัวของหน้า | |||
Keep a track of all communications,ติดตามการติดต่อสื่อสารทั้งหมด | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,图标将显示在按钮上 | |||
"If image is selected, color will be ignored (attach first)",如果图像被选中,颜色将被忽略(先附上) | |||
"If not, create a",如果没有,请创建一个 | |||
"If the 'territory' Link Field exists, it will give you an option to select it",如果'领土'链接字段存在,它会给你一个选项,选择它 | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>",如果这些指令,其中没有帮助,请在您的建议添加<a href='https://github.com/webnotes/wnframework/issues'>GitHub的问题</a> | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>",如果这些指令,其中没有帮助,请在您的建议添加<a href='https://github.com/frappe/frappe/issues'>GitHub的问题</a> | |||
"If you set this, this Item will come in a drop-down under the selected parent.",如果你设置这个,这个项目会在一个下拉菜单中选定父下。 | |||
Image,图像 | |||
Image Link,图片链接 | |||
@@ -404,7 +404,7 @@ Is Single,单人 | |||
Is Standard,为标准 | |||
Is Submittable,是Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript的格式:wn.query_reports ['REPORTNAME'] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript的格式:frappe.query_reports ['REPORTNAME'] = {} | |||
Javascript,使用Javascript | |||
Javascript to append to the head section of the page.,Javascript来附加到页面的head部分。 | |||
Keep a track of all communications,保持跟踪所有通信 | |||
@@ -368,7 +368,7 @@ Icon will appear on the button,圖標將顯示在按鈕上 | |||
"If image is selected, color will be ignored (attach first)",如果圖像被選中,顏色將被忽略(先附上) | |||
"If not, create a",如果沒有,請創建一個 | |||
"If the 'territory' Link Field exists, it will give you an option to select it",如果'領土'鏈接字段存在,它會給你一個選項,選擇它 | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/webnotes/wnframework/issues'>GitHub Issues</a>",如果這些指令,其中沒有幫助,請在您的建議添加<a href='https://github.com/webnotes/wnframework/issues'>GitHub的問題</a> | |||
"If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>",如果這些指令,其中沒有幫助,請在您的建議添加<a href='https://github.com/frappe/frappe/issues'>GitHub的問題</a> | |||
"If you set this, this Item will come in a drop-down under the selected parent.",如果你設置這個,這個項目會在一個下拉菜單中選定父下。 | |||
Image,圖像 | |||
Image Link,圖片鏈接 | |||
@@ -404,7 +404,7 @@ Is Single,單人 | |||
Is Standard,為標準 | |||
Is Submittable,是Submittable | |||
JSON,JSON | |||
JavaScript Format: wn.query_reports['REPORTNAME'] = {},JavaScript的格式:wn.query_reports ['REPORTNAME'] = {} | |||
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript的格式:frappe.query_reports ['REPORTNAME'] = {} | |||
Javascript,使用Javascript | |||
Javascript to append to the head section of the page.,Javascript來附加到頁面的head部分。 | |||
Keep a track of all communications,保持跟踪所有通信 | |||
@@ -7,7 +7,7 @@ from __future__ import unicode_literals | |||
To setup in defs set: | |||
backup_path: path where backups will be taken (for eg /backups) | |||
backup_link_path: download link for backups (eg /var/www/wnframework/backups) | |||
backup_link_path: download link for backups (eg /var/www/frappe/backups) | |||
backup_url: base url of the backup folder (eg http://mysite.com/backups) | |||
""" | |||
#Imports | |||
@@ -8,6 +8,9 @@ from frappe.website.utils import cleanup_page_name | |||
from frappe.website.doctype.website_sitemap.website_sitemap import add_to_sitemap, update_sitemap, remove_sitemap | |||
def call_website_generator(bean, method, *args, **kwargs): | |||
getattr(WebsiteGenerator(bean.doc, bean.doclist), method)(*args, **kwargs) | |||
class WebsiteGenerator(DocListController): | |||
def autoname(self): | |||
self.doc.name = cleanup_page_name(self.get_page_title()) | |||
@@ -41,7 +41,7 @@ def get_script(report_name): | |||
script = report.javascript | |||
if not script: | |||
script = "wn.query_reports['%s']={}" % report_name | |||
script = "frappe.query_reports['%s']={}" % report_name | |||
# load translations | |||
if frappe.lang != "en": | |||
@@ -2,7 +2,7 @@ | |||
#### Application Name and Details | |||
1. `app_name` - slugified name e.g. "webnotes" | |||
1. `app_name` - slugified name e.g. "frappe" | |||
1. `app_title` - full title name e.g. "Web Notes" | |||
1. `app_publisher` | |||
1. `app_description` | |||
@@ -19,10 +19,10 @@ | |||
#### Javascript / CSS Builds | |||
1. `app_include_js` - include in "app" | |||
1. `app_include_css` - assets/webnotes/css/splash.css | |||
1. `app_include_css` - assets/frappe/css/splash.css | |||
1. `web_include_js` - assets/js/webnotes-web.min.js | |||
1. `web_include_css` - assets/css/webnotes-web.css | |||
1. `web_include_js` - assets/js/frappe-web.min.js | |||
1. `web_include_css` - assets/css/frappe-web.css | |||
#### Desktop | |||