Merge branch 'develop' of github.com:frappe/frappe into develop

This commit is contained in:
Nabin Hait 2014-02-17 22:52:51 +05:30
commit 7c8ebaa820
61 changed files with 227 additions and 172 deletions

View file

@ -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,25 +11,30 @@ 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
$ lib/wnf.py --make_conf
$ lib/wnf.py --reinstall
$ lib/wnf.py --build
mkdir bench
cd bench
git clone https://github.com/frappe/frappe.git
git clone https://github.com/frappe/[your_app]
sudo pip install -e frappe/ erpnext/ your_app/
mkdir sites
echo app >> sites/apps.txt
cd sites
frappe site.local --install erpnext
frappe site.local --install_app your_app
1. Run development server:
$ lib/wnf.py --serve
cd sites
frappe site.local --serve
enjoy!
## wnf.py
`$ lib/wnf.py --help` for more info
`frappe --help` for more info
## License
wnframework is freely available to use under the MIT License
frappe is freely available to use under the MIT License

View file

@ -416,6 +416,7 @@ def get_hooks(hook=None, app_name=None):
def load_app_hooks(app_name=None):
hooks = {}
for app in [app_name] if app_name else get_installed_apps():
if app=="webnotes": app="frappe"
for item in get_file_items(get_pymodule_path(app, "hooks.txt")):
key, value = item.split("=", 1)
key, value = key.strip(), value.strip()
@ -441,7 +442,8 @@ def setup_module_map():
if not local.app_modules:
local.module_app, local.app_modules = {}, {}
for app in get_all_apps(True):
for app in get_all_apps(True):
if app=="webnotes": app="frappe"
local.app_modules.setdefault(app, [])
for module in get_module_list(app):
local.module_app[module] = app

View file

@ -21,6 +21,7 @@ from frappe.utils import get_site_name
local_manager = LocalManager([frappe.local])
_site = None
_sites_path = os.environ.get("SITES_PATH", ".")
def handle_session_stopped():
res = Response("""<html>
@ -41,7 +42,7 @@ def application(request):
try:
site = _site or get_site_name(request.host)
frappe.init(site=site)
frappe.init(site=site, sites_path=_sites_path)
if not frappe.local.conf:
# site does not exist
@ -79,9 +80,10 @@ def application(request):
application = local_manager.make_middleware(application)
def serve(port=8000, profile=False, site=None):
global application, _site
def serve(port=8000, profile=False, site=None, sites_path='.'):
global application, _site, _sites_path
_site = site
_sites_path = sites_path
from werkzeug.serving import run_simple
@ -90,12 +92,12 @@ def serve(port=8000, profile=False, site=None):
if not os.environ.get('NO_STATICS'):
application = SharedDataMiddleware(application, {
'/assets': 'assets',
'/assets': os.path.join(sites_path, 'assets'),
})
if site:
application = SharedDataMiddleware(application, {
'/files': os.path.join(site, 'public', 'files')
'/files': os.path.join(sites_path, site, 'public', 'files')
})
run_simple('0.0.0.0', int(port), application, use_reloader=True,

View file

@ -13,8 +13,11 @@ site_arg_optional = []
def main():
parsed_args = frappe._dict(vars(setup_parser()))
fn = get_function(parsed_args)
if not parsed_args.get("sites_path"):
parsed_args["sites_path"] = "."
if parsed_args.get("sites_path"):
parsed_args["sites_path"] = parsed_args["sites_path"][0]
else:
parsed_args["sites_path"] = os.environ.get("SITES_PATH", ".")
sites_path = parsed_args.get("sites_path")
if not parsed_args.get("make_app"):
@ -22,25 +25,25 @@ def main():
for site in get_sites(parsed_args["sites_path"]):
args = parsed_args.copy()
args["site"] = site
frappe.init(site)
frappe.init(site, sites_path=sites_path)
run(fn, args)
else:
if not fn in site_arg_optional:
if not parsed_args.get("site") and os.path.exists("currentsite.txt"):
with open("currentsite.txt", "r") as sitefile:
site = sitefile.read()
else:
site = parsed_args.get("site")
if not parsed_args.get("site") and os.path.exists(os.path.join(sites_path, "currentsite.txt")):
with open(os.path.join(sites_path, "currentsite.txt"), "r") as sitefile:
parsed_args["site"] = sitefile.read().strip()
site = parsed_args.get("site")
if not site:
print "Site argument required"
exit(1)
if fn != 'install' and not os.path.exists(site):
if fn != 'install' and not os.path.exists(os.path.join(parsed_args["sites_path"], site)):
print "Did not find folder '{}'. Are you in sites folder?".format(parsed_args.get("site"))
exit(1)
frappe.init(site)
frappe.init(site, sites_path=sites_path)
run(fn, parsed_args)
else:
run(fn, parsed_args)
@ -106,6 +109,8 @@ def setup_install(parser):
help="Make a new application with boilerplate")
parser.add_argument("--install", metavar="DB-NAME", nargs=1,
help="Install a new db")
parser.add_argument("--sites_path", metavar="SITES_PATH", nargs=1,
help="path to directory with sites")
parser.add_argument("--install_app", metavar="APP-NAME", nargs=1,
help="Install a new app")
parser.add_argument("--root-password", nargs=1,
@ -290,7 +295,7 @@ def update(remote=None, branch=None, reload_gunicorn=False):
subprocess.check_output("killall -HUP gunicorn".split())
@cmd
def latest(verbose=True):
def latest(verbose=True, rebuild_website_config=True):
import frappe.modules.patch_handler
import frappe.model.sync
from frappe.website import rebuild_config
@ -308,7 +313,8 @@ def latest(verbose=True):
frappe.model.sync.sync_all()
# build website config if any changes in templates etc.
rebuild_config()
if rebuild_website_config:
rebuild_config()
except frappe.modules.patch_handler.PatchError, e:
print "\n".join(frappe.local.patch_log_list)
@ -625,9 +631,9 @@ def run_tests(app=None, module=None, doctype=None, verbose=False):
exit(1)
@cmd
def serve(port=8000, profile=False):
def serve(port=8000, profile=False, sites_path='.'):
import frappe.app
frappe.app.serve(port=port, profile=profile, site=frappe.local.site)
frappe.app.serve(port=port, profile=profile, site=frappe.local.site, sites_path=sites_path)
@cmd
def request(args):

View file

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

View file

@ -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.

View file

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

View file

@ -57,46 +57,59 @@ class TestProfile(unittest.TestCase):
self.assertEquals(len(p_meta.get({"fieldname": ["not in", ["first_name", "last_name"]]})), len(p_meta) - 2)
test_records = [[{
"doctype":"Profile",
"email": "test@example.com",
"first_name": "_Test",
"new_password": "testpassword",
"enabled": 1
}, {
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "_Test Role"
}, {
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "System Manager"
}],
[{
"doctype":"Profile",
"email": "test1@example.com",
"first_name": "_Test1",
"new_password": "testpassword"
}],
[{
"doctype":"Profile",
"email": "test2@example.com",
"first_name": "_Test2",
"new_password": "testpassword"
}],
[{
"doctype":"Profile",
"email": "testdelete@example.com",
"first_name": "_Test",
"new_password": "testpassword",
"enabled": 1
}, {
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "_Test Role 2"
}, {
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "System Manager"
}],
test_records = [
[
{
"doctype":"Profile",
"email": "test@example.com",
"first_name": "_Test",
"new_password": "testpassword",
"enabled": 1
},
{
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "_Test Role"
},
{
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "System Manager"
}
],
[
{
"doctype":"Profile",
"email": "test1@example.com",
"first_name": "_Test1",
"new_password": "testpassword"
}
],
[
{
"doctype":"Profile",
"email": "test2@example.com",
"first_name": "_Test2",
"new_password": "testpassword"
}
],
[
{
"doctype":"Profile",
"email": "testdelete@example.com",
"first_name": "_Test",
"new_password": "testpassword",
"enabled": 1
},
{
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "_Test Role 2"
},
{
"doctype":"UserRole",
"parentfield":"user_roles",
"role": "System Manager"
}
],
]

View file

@ -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",

View file

@ -45,7 +45,7 @@ frappe.pages['permission-manager'].onload = function(wrapper) {
"<li>"+frappe._("If 'Restricted' is checked, the owner is always allowed based on Role.")+"</li>"+
"<li>"+frappe._("Once you have set this, the users will only be able access documents where the link (e.g Company) exists.")+"</li>"+
"<li>"+frappe._("Apart from System Manager, roles with Restrict permission can restrict other users for that Document Type")+"</li></ol><hr>\
<p>"+frappe._("If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe.ramework/issues'>GitHub Issues</a>")+"</p>\
<p>"+frappe._("If these instructions where not helpful, please add in your suggestions at <a href='https://github.com/frappe/frappe/issues'>GitHub Issues</a>")+"</p>\
</tr></td>\
</table>");
wrapper.permission_engine = new frappe.PermissionEngine(wrapper);

View file

@ -38,7 +38,7 @@ def install_db(root_login="root", root_password=None, db_name=None, source_sql=N
frappe.flags.in_install_db = False
def create_database_and_user(force, verbose):
db_name = frappe.conf.db_name
db_name = frappe.local.conf.db_name
dbman = DbManager(frappe.local.conn)
if force or (db_name not in dbman.get_database_list()):
dbman.delete_user(db_name)
@ -112,15 +112,16 @@ def install_app(name, verbose=False):
frappe.flags.in_install_app = False
def add_to_installed_apps(app_name):
def add_to_installed_apps(app_name, rebuild_sitemap=True):
installed_apps = frappe.get_installed_apps()
if not app_name in installed_apps:
installed_apps.append(app_name)
frappe.conn.set_global("installed_apps", json.dumps(installed_apps))
frappe.conn.commit()
from frappe.website.doctype.website_sitemap_config.website_sitemap_config import rebuild_website_sitemap_config
rebuild_website_sitemap_config()
if rebuild_sitemap:
from frappe.website.doctype.website_sitemap_config.website_sitemap_config import rebuild_website_sitemap_config
rebuild_website_sitemap_config()
frappe.clear_cache()
@ -137,8 +138,9 @@ def set_all_patches_as_completed(app):
def make_conf(db_name=None, db_password=None, site_config=None):
site = frappe.local.site
make_site_config(db_name, db_password, site_config)
sites_path = frappe.local.sites_path
frappe.destroy()
frappe.init(site)
frappe.init(site, sites_path=sites_path)
def make_site_config(db_name=None, db_password=None, site_config=None):
frappe.create_folder(os.path.join(frappe.local.site_path))

View file

@ -38,6 +38,9 @@ class Bean:
if dt and dn:
if isinstance(dn, dict):
dn = frappe.conn.get_value(dt, dn, "name")
if dn is None:
raise frappe.DoesNotExistError
self.load_from_db(dt, dn)
elif isinstance(dt, list):
self.set_doclist(dt)

View file

@ -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.

View file

@ -29,6 +29,9 @@ def run_all():
def get_all_patches():
patches = []
for app in frappe.get_installed_apps():
# 3-to-4 fix
if app=="webnotes":
app="frappe"
patches.extend(frappe.get_file_items(frappe.get_pymodule_path(app, "patches.txt")))
return patches

View file

@ -10,4 +10,5 @@ frappe.patches.4_0.remove_index_sitemap
frappe.patches.4_0.add_delete_permission
frappe.patches.4_0.move_match_to_restricted
frappe.patches.4_0.set_todo_checked_as_closed
frappe.patches.4_0.website_sitemap_hierarchy
frappe.patches.4_0.website_sitemap_hierarchy
frappe.patches.4_0.webnotes_to_frappe

View file

@ -2,4 +2,7 @@ import frappe
def execute():
frappe.reload_doc("core", "doctype", "todo")
frappe.conn.sql("""update tabToDo set status = if(ifnull(checked,0)=0, 'Open', 'Closed')""")
try:
frappe.conn.sql("""update tabToDo set status = if(ifnull(checked,0)=0, 'Open', 'Closed')""")
except:
pass

View file

@ -0,0 +1,9 @@
import frappe, json
def execute():
installed = frappe.get_installed_apps()
if "webnotes" in installed:
installed.remove("webnotes")
installed = ["frappe"] + installed
frappe.conn.set_global("installed_apps", json.dumps(installed))
frappe.clear_cache()

View file

@ -216,11 +216,11 @@ div#freeze {
}
/* form */
.wn-editor {
.frappe-editor {
cursor: text;
}
.wn-editor img {
.frappe-editor img {
max-width: 100%;
}

View file

@ -173,7 +173,7 @@ frappe.Application = Class.extend({
make_nav_bar: function() {
// toolbar
if(frappe.boot) {
frappe.container.frappe.oolbar = new frappe.ui.toolbar.Toolbar();
frappe.container.frappe_toolbar = new frappe.ui.toolbar.Toolbar();
}
},
logout: function() {

View file

@ -1,7 +1,7 @@
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
if(!window.frappe. frappe.= {};
if(!window.frappe) window.frappe = {};
function flt(v, decimals, number_format) {
if(v==null || v=='')return 0;

View file

@ -26,14 +26,14 @@ function prettyDate(time){
var comment_when = function(datetime) {
return '<span class="frappe.timestamp" data-timestamp="'+datetime+'">' + prettyDate(datetime) + '</span>';
return '<span class="frappe-timestamp" data-timestamp="'+datetime+'">' + prettyDate(datetime) + '</span>';
};
frappe.provide("frappe.datetime");
frappe.datetime.comment_when = prettyDate;
frappe.datetime.refresh_when = function() {
if(jQuery) {
$(".frappe.timestamp").each(function() {
$(".frappe-timestamp").each(function() {
$(this).html(prettyDate($(this).attr("data-timestamp")));
})
}

View file

@ -2,7 +2,8 @@
// MIT License. See license.txt
// provide a namespace
if(!window.frappe.frappe.= {}
if(!window.frappe)
window.frappe = {};
frappe.provide = function(namespace) {
// docs: create a namespace //
var nsl = namespace.split('.');

View file

@ -15,7 +15,7 @@ bsEditor = Class.extend({
this.setup_fixed_toolbar();
} else if(this.options.parent) {
this.wrapper = $("<div></div>").appendTo(this.options.parent);
this.setup_editor($("<div class='frappe.editor'></div>").appendTo(this.wrapper));
this.setup_editor($("<div class='frappe-list'></div>").appendTo(this.wrapper));
this.setup_inline_toolbar();
this.editor.css(this.options.inline_editor_style);
this.set_editing();
@ -223,8 +223,8 @@ bsEditorToolbar = Class.extend({
make: function(parent) {
if(!parent)
parent = $("body");
if(!parent.find(".frappe.editor-toolbar").length) {
this.toolbar = $('<div class="frappe.editor-toolbar frappe.ignore-click">\
if(!parent.find(".frappe-list-toolbar").length) {
this.toolbar = $('<div class="frappe-list-toolbar frappe-ignore-click">\
<div class="btn-toolbar" data-role="editor-toolbar" style="margin-bottom: 7px;">\
<div class="btn-group form-group">\
<a class="btn btn-default btn-small dropdown-toggle" data-toggle="dropdown" \
@ -438,7 +438,7 @@ bsHTMLEditor = Class.extend({
style="height: 400px; width: 100%; font-family: Monaco, \'Courier New\', monospace; font-size: 11px">\
</textarea><br>\
<button class="btn btn-primary" style="margin-top: 7px;">Save</button>');
this.modal.addClass("frappe.ignore-click");
this.modal.addClass("frappe-ignore-click");
this.modal.find(".btn-primary").on("click", function() {
var html = me.modal.find("textarea").val();
$.each(me.editor.dataurls, function(key, val) {
@ -480,7 +480,7 @@ bsLinkEditor = Class.extend({
</div>\
<button class="btn btn-primary" style="margin-top: 7px;">Insert</button>');
this.modal.addClass("frappe.ignore-click");
this.modal.addClass("frappe-ignore-click");
this.modal.find(".btn-primary").on("click", function() {
me.toolbar.restore_selection();
var url = me.modal.find("input[type=text]").val();

View file

@ -61,7 +61,7 @@ frappe.ui.Listing = Class.extend({
$.extend(this, this.opts);
$(this.parent).html(repl('\
<div class="frappe.ist">\
<div class="frappe-list">\
<h3 class="title hide">%(title)s</h3>\
\
<div class="list-filters" style="display: none;">\
@ -99,7 +99,7 @@ frappe.ui.Listing = Class.extend({
</p>\
</div>\
', this.opts));
this.$w = $(this.parent).find('.frappe.ist');
this.$w = $(this.parent).find('.frappe-list');
this.set_events();
if(this.appframe) {

View file

@ -53,7 +53,7 @@ frappe.views.DocListView = frappe.ui.Listing.extend({
this.page.doclistview = this;
this.$page = $(this.page).css({"min-height": "400px"});
$('<div class="frappe.ist-area" style="margin-bottom: 25px;">\
$('<div class="frappe-list-area" style="margin-bottom: 25px;">\
<div class="help">'+frappe._('Loading')+'...</div></div>')
.appendTo(this.$page.find(".layout-main-section"));
@ -83,7 +83,7 @@ frappe.views.DocListView = frappe.ui.Listing.extend({
setup: function() {
this.can_delete = frappe.model.can_delete(this.doctype);
this.meta = locals.DocType[this.doctype];
this.$page.find('.frappe.ist-area').empty(),
this.$page.find('.frappe-list-area').empty(),
this.setup_listview();
this.setup_docstatus_filter();
this.init_list(false);
@ -153,7 +153,7 @@ frappe.views.DocListView = frappe.ui.Listing.extend({
},
setup_listview: function() {
this.listview = frappe.views.get_listview(this.doctype, this);
this.wrapper = this.$page.find('.frappe.ist-area');
this.wrapper = this.$page.find('.frappe-list-area');
this.page_length = 20;
this.allow_delete = true;
},

View file

@ -15,7 +15,7 @@ frappe.standard_pages["test-runner"] = function() {
var route = frappe.get_route();
if(route.length < 2) {
msgprint("To run a test add the module name in the route after 'test-runner/'. \
For example, #test-runner/lib/js/frappe.test_app.js");
For example, #test-runner/lib/js/frappe/test_app.js");
return;
}

File diff suppressed because one or more lines are too long

View file

@ -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">

View file

@ -26,9 +26,9 @@
<script>
$(function() {
if(window.logged_in && getCookie("system_user")==="yes") {
wn.has_permission("Blog Post", "{{ name }}", "write", function(r) {
wn.require("assets/frappe/js/wn/website/editable.js");
wn.make_editable($('[itemprop="articleBody"]'), "Blog Post", "{{ name }}", "content");
frappe.has_permission("Blog Post", "{{ name }}", "write", function(r) {
frappe.require("assets/frappe/js/frappe/website/editable.js");
frappe.make_editable($('[itemprop="articleBody"]'), "Blog Post", "{{ name }}", "content");
});
}
});

View file

@ -42,9 +42,9 @@
<script>
$(function() {
if(window.logged_in && getCookie("system_user")==="yes") {
wn.has_permission("Web Page", "{{ docname }}", "write", function(r) {
wn.require("assets/frappe/js/wn/website/editable.js");
wn.make_editable($(".web-page-content"), "Web Page", "{{ docname }}", "main_section");
frappe.has_permission("Web Page", "{{ docname }}", "write", function(r) {
frappe.require("assets/frappe/js/frappe/website/editable.js");
frappe.make_editable($(".web-page-content"), "Web Page", "{{ docname }}", "main_section");
});
}
});

View file

@ -58,11 +58,11 @@ $(document).ready(function() {
}
if(!args.comment_by_fullname || !args.comment_by || !args.comment) {
wn.msgprint("All fields are necessary to submit the comment.")
frappe.msgprint("All fields are necessary to submit the comment.")
return false;
}
wn.call({
frappe.call({
btn: this,
type: "POST",
method: "frappe.templates.includes.comments.add_comment",
@ -70,7 +70,7 @@ $(document).ready(function() {
callback: function(r) {
if(r.exc) {
if(r._server_messages)
wn.msgprint(r._server_messages);
frappe.msgprint(r._server_messages);
} else {
$(r.message).appendTo("#comment-list");
$(".no-comment, .add-comment").toggle(false);

View file

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

View file

@ -6,5 +6,6 @@ import frappe
def get_context(context):
# get settings from site config
context["title"] = "Login"
if frappe.conf.get("fb_app_id"):
return { "fb_app_id": frappe.conf.fb_app_id, "title": "Login" }
return { "fb_app_id": frappe.conf.fb_app_id }

View file

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

View file

@ -46,15 +46,15 @@ $(document).ready(function() {
}
if(!args.old_password && !args.key) {
wn.msgprint("Old Password Required.");
frappe.msgprint("Old Password Required.");
return;
}
if(!args.new_password) {
wn.msgprint("New Password Required.")
frappe.msgprint("New Password Required.")
return;
}
wn.call({
frappe.call({
type: "POST",
method: "frappe.core.doctype.profile.profile.update_password",
btn: $("#update"),
@ -62,7 +62,7 @@ $(document).ready(function() {
callback: function(r) {
if(r.message) {
$("input").val("");
var dialog = wn.msgprint(r.message);
var dialog = frappe.msgprint(r.message);
dialog.on("hide.bs.modal", function() {
window.location.href = "login";
});

View file

@ -1,7 +1,7 @@
{% include "templates/includes/post_editor.html" %}
<script>
wn.require("/assets/js/canvasResize.min.js");
frappe.require("/assets/js/canvasResize.min.js");
$(function() {
website.bind_add_post();

View file

@ -9,7 +9,7 @@
<script>
$(function() {
if($(".post").length===20) {
wn.setup_pagination();
frappe.setup_pagination();
}
{% if group.group_type == "Forum" -%}

View file

@ -13,7 +13,7 @@
</div>
<script>
wn.require("/assets/js/canvasResize.min.js");
frappe.require("/assets/js/canvasResize.min.js");
$(function() {
website.toggle_edit(true);
website.toggle_upvote();

View file

@ -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 {}

View file

@ -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",إذا حقل &#39;الأرض&#39; لينك موجود، وسوف تعطيك الخيار لتحديده
"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,حفاظ على تعقب من كافة الاتصالات

1 by Role بالتخصص
368 In Dialog في مربع حوار
369 In Filter في تصفية
370 In List View في عرض القائمة
371 In Report Filter في تصفية التقرير
372 In response to ردا على
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. في إدارة إذن، انقر على زر في عمود &quot;الحالة&quot; لدور تريد تقييد.
374 Index مؤشر
404 Label Help التسمية تعليمات
405 Lacs البحيرات
406 Landing Page الصفحة المقصودة
407 Language لغة
408 Language preference for user interface (only if available). تفضيل لغة واجهة المستخدم (إلا إذا وجدت).
409 Last IP مشاركة IP
410 Last Login آخر تسجيل دخول

View file

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

1 by Role von Rolle
362 In List View In Listenansicht
363 In Report Filter Im Berichts-Filter
364 In response to Als Antwort auf
365 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. In der Permission Manager, auf die Schaltfläche in der 'Bedingung' Spalte für die Rolle, die Sie einschränken möchten.
366 Index Index
367 Individuals Einzelpersonen
368 Industry Industrie
398 Landing Page Landing Page
399 Language Sprache
400 Language preference for user interface (only if available). Bevorzugte Sprache für die Benutzeroberfläche (nur falls vorhanden).
401 Last IP Letzte IP-
402 Last Login Letzter Login
403 Last Name Nachname
404 Last updated by Zuletzt aktualisiert von

View file

@ -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 [&#39;REPORTNAME&#39;] = {}
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript Format: frappe.query_reports [&#39;REPORTNAME&#39;] = {}
Javascript,Javascript
Javascript to append to the head section of the page.,Javascript για να προσθέσετε στο τμήμα της κεφαλής της σελίδας.
Keep a track of all communications,Κρατήστε ένα κομμάτι του συνόλου των επικοινωνιών

1 by Role από το ρόλο
368 In Dialog Στο Dialog
369 In Filter Το Φίλτρο
370 In List View Στην Λίστα
371 In Report Filter Στην έκθεση Filter
372 In response to Σε απάντηση προς
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. Στην Manager άδεια, κάντε κλικ στο κουμπί στην «Κατάσταση» στήλη για το ρόλο που θέλετε να περιορίσετε.
374 Index Δείκτης
404 Label Help Βοήθεια Label
405 Lacs Lacs
406 Landing Page Landing Page
407 Language Γλώσσα
408 Language preference for user interface (only if available). Γλώσσα προτίμησης για την διεπαφή χρήστη (μόνο εάν είναι διαθέσιμο).
409 Last IP Τελευταία IP
410 Last Login Είσοδος

View file

@ -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 &#39;territorio&#39; 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

1 by Role por función
368 In Dialog En diálogo
369 In Filter En Filter
370 In List View En Vista de lista
371 In Report Filter En Filtro de informe
372 In response to En respuesta a
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. En el Administrador de autorización, haga clic en el botón de la &quot;condición&quot; de columna para la función que desea restringir.
374 Index Índice
404 Label Help Etiqueta Ayuda
405 Lacs Lacs
406 Landing Page Landing Page
407 Language Idioma
408 Language preference for user interface (only if available). Preferencias del idioma para la interfaz de usuario (si está disponible).
409 Last IP Última IP
410 Last Login Último ingreso

View file

@ -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&#39;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&#39;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

1 by Role par rôle
368 In Dialog Dans la boîte de dialogue
369 In Filter Dans filtre
370 In List View Dans la Fenêtre
371 In Report Filter Dans le rapport de filtre
372 In response to En réponse à
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. Dans le Gestionnaire d&#39;autorisations, cliquez sur le bouton dans la &#39;condition&#39; de colonne pour le rôle que vous souhaitez restreindre.
374 Index Index
404 Label Help Aide étiquette
405 Lacs Lacs
406 Landing Page Landing Page
407 Language Langue
408 Language preference for user interface (only if available). Langue de préférence pour l&#39;interface utilisateur (si disponible).
409 Last IP Dernière adresse IP
410 Last Login Dernière connexion

View file

@ -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","यदि &#39;क्षेत्र&#39; लिंक क्षेत्र में मौजूद है, यह आप एक का चयन करने के लिए यह विकल्प दे देंगे"
"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,सभी संचार के एक ट्रैक रखें

1 by Role रोल से
368 In Dialog संवाद में
369 In Filter फिल्टर में
370 In List View सूची दृश्य में
371 In Report Filter रिपोर्ट फिल्टर में
372 In response to के जवाब में
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. अनुमति मैनेजर में, &#39;स्थिति&#39; कॉलम में रोल आप प्रतिबंधित करना चाहते हैं, उसके लिए बटन पर क्लिक करें.
374 Index अनुक्रमणिका
404 Label Help लेबल मदद
405 Lacs लाख
406 Landing Page लैंडिंग पेज
407 Language भाषा
408 Language preference for user interface (only if available). उपयोगकर्ता इंटरफ़ेस के लिए भाषा वरीयता (केवल यदि उपलब्ध हो).
409 Last IP अंतिम IP
410 Last Login अंतिम लॉगिन

View file

@ -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 &#39;teritoriju&#39; 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

1 by Role prema ulozi
368 In Dialog U Dialog
369 In Filter U filtru
370 In List View U prikazu popisa
371 In Report Filter U Prijavi Filter
372 In response to U odgovoru na
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. U dozvole Manager, kliknite na gumb u &#39;hotela&#39; stupcu za ulogu želite ograničiti.
374 Index Indeks
404 Label Help Oznaka Pomoć
405 Lacs Lacs
406 Landing Page Odredišna stranica
407 Language Jezik
408 Language preference for user interface (only if available). Jezik sklonost za korisničko sučelje (samo ako je dostupan).
409 Last IP Posljednja IP
410 Last Login Zadnji Login

View file

@ -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&#39;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 &#39;territorio&#39; 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 [&#39;REPORTNAME&#39;] = {}
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},Formato JavaScript: frappe.query_reports [&#39;REPORTNAME&#39;] = {}
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

1 by Role per Ruolo
368 In Dialog Nella finestra di dialogo
369 In Filter In Filtro
370 In List View In elenco Visualizza
371 In Report Filter In Report Filter
372 In response to In risposta a
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. Nel Permission Manager, fare clic sul pulsante nella colonna &#39;Stato&#39; per il ruolo che si desidera limitare.
374 Index Indice
404 Label Help Etichetta Help
405 Lacs Lacs
406 Landing Page Pagina di destinazione
407 Language Lingua
408 Language preference for user interface (only if available). Lingua preferita per l'interfaccia (se disponibile)
409 Last IP Ultimo IP
410 Last Login Ultimo Login

View file

@ -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 &#39;grondgebied&#39; 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

1 by Role per rol
368 In Dialog In Dialog
369 In Filter In Filter
370 In List View In lijstweergave
371 In Report Filter In Report Filter
372 In response to In reactie op
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. In de Permission Manager, klik op de knop in de &#39;Staat&#39; op de kolom voor de rol die u wilt beperken.
374 Index Index
404 Label Help Label Help
405 Lacs Lacs
406 Landing Page Landing Page
407 Language Taal
408 Language preference for user interface (only if available). Taal voorkeur voor user interface (alleen indien beschikbaar).
409 Last IP Laatste IP-
410 Last Login Laatst ingelogd

View file

@ -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 &#39;território&#39; 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

1 by Role por função
368 In Dialog Em diálogo
369 In Filter Em Filtro
370 In List View Na exibição de lista
371 In Report Filter No Filtro do Relatório
372 In response to Em resposta ao(s)
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. No Gerenciador de Permissão, clique no botão na coluna &#39;Condição&#39; para a função que deseja restringir.
374 Index Índice
404 Label Help Ajuda sobre etiquetas
405 Lacs Lacs
406 Landing Page Página de chegada
407 Language Idioma
408 Language preference for user interface (only if available). Idioma de preferência para interface de usuário (se disponível).
409 Last IP Último IP
410 Last Login Último Login

View file

@ -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 &#39;território&#39; 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

1 by Role por função
368 In Dialog Em diálogo
369 In Filter Em Filtro
370 In List View Na exibição de lista
371 In Report Filter No Relatório Filtro
372 In response to Em resposta aos
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. No Gerenciador de Permissão, clique no botão no &#39;Condição&#39; coluna para a função que deseja restringir.
374 Index Índice
404 Label Help Ajuda rótulo
405 Lacs Lacs
406 Landing Page Landing Page
407 Language Linguagem
408 Language preference for user interface (only if available). Preferência de idioma para interface de usuário (se disponível).
409 Last IP Última IP
410 Last Login Último Login

View file

@ -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","Ако Линк пољу &quot;територије&quot; постоји, она ће вам дати могућност да изаберете"
"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,Водите евиденцију о свим комуникацијама

1 by Role по улози
368 In Dialog У дијалогу
369 In Filter У филтеру
370 In List View У приказу листе
371 In Report Filter У извештају филтер
372 In response to У одговору на
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. У дозвола Манагер, кликните на дугме у &#39;услови&#39; колумну за улогу коју желите да ограничите.
374 Index Индекс
404 Label Help Етикета Помоћ
405 Lacs Лацс
406 Landing Page Ландинг Паге
407 Language Језик
408 Language preference for user interface (only if available). Језик предност корисничког интерфејса (само ако је на располагању).
409 Last IP Последњи ИП
410 Last Login Последњи Улазак

View file

@ -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","&#39;பகுதியில்&#39; இணைப்பு புலம் உள்ளது என்றால், அதை நீங்கள் தேர்ந்தெடுக்க ஒரு விருப்பத்தை தரும்"
"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,அனைத்து தொடர்புகளையும் ஒரு கண்காணிக்க

1 by Role பாத்திரம் மூலம்
368 In Dialog உரையாடல்
369 In Filter வடிகட்டி உள்ள
370 In List View பட்டியல் இல்
371 In Report Filter அறிக்கை வடிகட்டி உள்ள
372 In response to பதில்
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. அனுமதி மேலாளர், நீங்கள் தடுக்க வேண்டும் பாத்திரத்தில் ஒரு &#39;நிலை&#39; நிரலில் பொத்தானை கிளிக் செய்யவும்.
374 Index குறியீட்டெண்
404 Label Help லேபிள் உதவி
405 Lacs Lacs
406 Landing Page இறங்கும் பக்கம்
407 Language மொழி
408 Language preference for user interface (only if available). பயனர் இடைமுக மொழி முன்னுரிமை (மட்டுமே கிடைக்கும் என்றால்).
409 Last IP கடந்த ஐபி
410 Last Login கடைசியாக உட்சென்ற தேதி

View file

@ -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",ถ้าฟิลด์ &#39;ดินแดน&#39; แล้วก็จะให้คุณเลือกที่จะเลือก
"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,ติดตามการติดต่อสื่อสารทั้งหมด

1 by Role โดยบทบาท
368 In Dialog ในกล่องโต้ตอบ
369 In Filter กรอง
370 In List View ในมุมมองรายการ
371 In Report Filter ในรายงานกรอง
372 In response to ในการตอบสนองต่อ
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. ในตัวจัดการการอนุญาตให้คลิกที่ปุ่มใน &#39;สภาพ&#39; คอลัมน์บทบาทที่คุณต้องการ จำกัด
374 Index ดัชนี
404 Label Help ช่วยเหลือฉลาก
405 Lacs Lacs
406 Landing Page หน้า Landing Page
407 Language ภาษา
408 Language preference for user interface (only if available). การตั้งค่าภาษาสำหรับส่วนติดต่อผู้ใช้ (เฉพาะถ้ามี)
409 Last IP IP สุดท้าย
410 Last Login เข้าสู่ระบบล่าสุด

View file

@ -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",如果&#39;领土&#39;链接字段存在,它会给你一个选项,选择它
"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 [&#39;REPORTNAME&#39;] = {}
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript的格式frappe.query_reports [&#39;REPORTNAME&#39;] = {}
Javascript,使用Javascript
Javascript to append to the head section of the page.,Javascript来附加到页面的head部分。
Keep a track of all communications,保持跟踪所有通信

1 by Role 按角色
368 In Dialog 在对话框
369 In Filter 在过滤器
370 In List View 在列表视图
371 In Report Filter 在报表筛选
372 In response to 响应于
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. 在权限管理器中,单击在“状态”列中的按钮为要限制的作用。
374 Index 指数
404 Label Help 标签说明
405 Lacs 紫胶
406 Landing Page 着陆页
407 Language
408 Language preference for user interface (only if available). 语言首选项的用户界面(仅如果有的话)。
409 Last IP 最后一个IP
410 Last Login 上次登录

View file

@ -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",如果&#39;領土&#39;鏈接字段存在,它會給你一個選項,選擇它
"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 [&#39;REPORTNAME&#39;] = {}
JavaScript Format: frappe.query_reports['REPORTNAME'] = {},JavaScript的格式frappe.query_reports [&#39;REPORTNAME&#39;] = {}
Javascript,使用Javascript
Javascript to append to the head section of the page.,Javascript來附加到頁面的head部分。
Keep a track of all communications,保持跟踪所有通信

1 by Role 按角色
368 In Dialog 在對話框
369 In Filter 在過濾器
370 In List View 在列表視圖
371 In Report Filter 在報表篩選
372 In response to 響應於
373 In the Permission Manager, click on the button in the 'Condition' column for the Role you want to restrict. 在權限管理器中,單擊在“狀態”列中的按鈕為要限制的作用。
374 Index 指數
404 Label Help 標籤說明
405 Lacs 紫膠
406 Landing Page 著陸頁
407 Language
408 Language preference for user interface (only if available). 語言首選項的用戶界面(僅如果有的話)。
409 Last IP 最後一個IP
410 Last Login 上次登錄

View file

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

View file

@ -43,6 +43,7 @@ def rebuild_website_sitemap_config():
frappe.conn.sql("""delete from `tabWebsite Sitemap Config`""")
for app in frappe.get_installed_apps():
if app=="webnotes": app="frappe"
build_website_sitemap_config(app)
cleanup_sitemap()

View file

@ -3,7 +3,7 @@
frappe.provide("website");
$.extend(frappe. {
$.extend(frappe, {
_assets_loaded: [],
require: function(url) {
if(frappe._assets_loaded.indexOf(url)!==-1) return;

View file

@ -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())

View file

@ -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":

View file

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