Skip to content

Commit

Permalink
Auto Commit!
Browse files Browse the repository at this point in the history
  • Loading branch information
pouyamn committed Jan 24, 2016
1 parent e0e7405 commit 153448e
Show file tree
Hide file tree
Showing 1,417 changed files with 157 additions and 140,414 deletions.
10 changes: 5 additions & 5 deletions content/1st.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Title: Seting Up this blog with Pelican
Date: 2015-12-24 11:26
Modified: 2016-01-13 12:26
Category: Pelican
Modified: 2016-01-23 10:26
Category: non-odoo
Tags: pelican, publishing
Slug: setup-blog
Authors: Pouya MN
Expand Down Expand Up @@ -75,9 +75,9 @@ Some caretaker's tasks:
...
github: publish
cd $(OUTPUTDIR)
git add -A .
git commit -m "Auto Post!"
git push origin master
git -C $(OUTPUTDIR) add -A .
git -C $(OUTPUTDIR) commit -m "Auto Post!"
git -C $(OUTPUTDIR) push origin master
cd $(BASEDIR)
git add -A .
git commit -m "Auto Commit!"
Expand Down
2 changes: 1 addition & 1 deletion content/2-keep_running.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Title: Keep Odoo running, easily
Date: 2016-01-12 11:26
Modified: 2016-01-12 11:26
Category: odoo
Category: General
Tags: odoo, openerp, general
Slug: keep-odoo-running
Authors: Pouya MN
Expand Down
2 changes: 1 addition & 1 deletion content/3-qweb-1.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Title: QWEB demystification, Part 1 - t-field and t-esc
Date: 2016-01-16 11:26
Modified: 2016-01-16 11:26
Category: Odoo
Category: QWEB
Tags: QWEB, safe-eval, openerp, odoo, odoo reports
Slug: qweb-1
Authors: Pouya MN
Expand Down
2 changes: 1 addition & 1 deletion content/4-qweb-2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Title: QWEB demystification, Part 2 - qweb widgits
Date: 2016-01-16 11:26
Modified: 2016-01-16 11:26
Category: Odoo
Category: QWEB
Tags: QWEB, safe-eval, openerp, odoo, odoo reports, qweb widgits
Slug: qweb-2
Authors: Pouya MN
Expand Down
2 changes: 1 addition & 1 deletion content/5-qweb-3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Title: QWEB demystification, Part 3 - dynamic views in QWEB
Date: 2016-01-16 11:26
Modified: 2016-01-16 11:26
Category: Odoo
Category: QWEB
Tags: QWEB, safe-eval, openerp, odoo, odoo reports
Slug: qweb-3
Authors: Pouya MN
Expand Down
34 changes: 17 additions & 17 deletions content/6-view_domain_add_like.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Title: Would you like to have some 'like's and 'ilike's in your domain and att*?
Title: Would you like to have some 'like's and 'ilike's in your domain and attrs?
Date: 2016-01-23 21:26
Modified: 2016-01-23 21:26
Category: views
Expand All @@ -12,26 +12,26 @@ The point is domain calculations (attrs is also using domain) are done in JS not

But there is a way to add this function to Odoo rather easily with some coding. Edit `view_form.js` ( in openerp/addons/web/static/src/js), find this line:
```js
case 'not in':
if (!_.isArray(val)) val = [val];
stack.push(!_(val).contains(field_value));
break;
case 'not in':
if (!_.isArray(val)) val = [val];
stack.push(!_(val).contains(field_value));
break;
```
and add these lines after it:

```js
case 'like':
stack.push(field_value.indexOf(val)>=0);
break;
case 'not like':
stack.push(field_value.indexOf(val)<0);
break;
case 'ilike':
stack.push(field_value.toUpperCase().indexOf(val.toUpperCase())>=0);
break;
case 'ilike':
stack.push(field_value.toUpperCase().indexOf(val.toUpperCase())<0);
break;
case 'like':
stack.push(field_value.indexOf(val)>=0);
break;
case 'not like':
stack.push(field_value.indexOf(val)<0);
break;
case 'ilike':
stack.push(field_value.toUpperCase().indexOf(val.toUpperCase())>=0);
break;
case 'ilike':
stack.push(field_value.toUpperCase().indexOf(val.toUpperCase())<0);
break;
```
and save it, TADA you can use it now.
**warning: if you use it with a field which is not string, it will raise an error**
Expand Down
2 changes: 1 addition & 1 deletion output
Submodule output updated 115 files
2 changes: 1 addition & 1 deletion pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
PLUGINS = ["googleplus_comments"]

#theme
THEME = "themes/SoMA2"
THEME = "theme"
#google plus api key
GOOGLE_PLUS_API_KEY="AIzaSyD-a9IF8KKYgoC3cpgS-Al7hLQDbugrDcw"
# Urls
Expand Down
1 change: 1 addition & 0 deletions pelicanconf.py~
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ DELETE_OUTPUT_DIRECTORY = False
# Blogroll
LINKS = (('Odoo', 'http://odoo.com/'),
('Odoo made Einfach', 'http://fshahy.github.io/'),
('Odoo made easy','http://www.odoo.yenthevg.com/')
)

# Social widget
Expand Down
4 changes: 2 additions & 2 deletions publishconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Following items are often useful when publishing

#DISQUS_SITENAME = ""
DISQUS_SITENAME = "https://odoodemystification.disqus.com/"
GOOGLE_ANALYTICS = "UA-72349337-1"
GOOGLE_PLUS_API_KEY="AIzaSyD-a9IF8KKYgoC3cpgS-Al7hLQDbugrDcw"

Expand All @@ -29,7 +29,7 @@
PLUGINS = ["googleplus_comments"]

#theme
THEME = "themes/SoMA2"
THEME = "theme"

# Urls
ARTICLE_URL = 'posts/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
Expand Down
4 changes: 2 additions & 2 deletions publishconf.py~
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DELETE_OUTPUT_DIRECTORY = False

# Following items are often useful when publishing

#DISQUS_SITENAME = ""
DISQUS_SITENAME = "https://odoodemystification.disqus.com/"
GOOGLE_ANALYTICS = "UA-72349337-1"
GOOGLE_PLUS_API_KEY="AIzaSyD-a9IF8KKYgoC3cpgS-Al7hLQDbugrDcw"

Expand All @@ -29,7 +29,7 @@ PLUGIN_PATH = 'plugins'
PLUGINS = ["googleplus_comments"]

#theme
THEME = "themes/SoMA2"
THEME = "theme"

# Urls
ARTICLE_URL = 'posts/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
124 changes: 124 additions & 0 deletions theme/templates/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{% extends "base.html" %}
{% block title %}{{ article.title|striptags }} - {{ SITENAME }}{% endblock %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block meta %}
{% if article.author %}
<meta name="author" content="{{ article.author }}" />
{% else %}
<meta name="author" content="{{ AUTHOR }}" />
{% endif %}
{% if article.tags %}
<meta name="keywords" content="{{ article.tags|join(',')|striptags }}" />
{% endif %}
{% if article.summary %}
<meta name="description" content="{{ article.summary|striptags|escape }}" />
{% endif %}
{% endblock %}
{% block opengraph %}
{% if USE_OPEN_GRAPH %}
{% if OPEN_GRAPH_FB_APP_ID %}
<meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/>
{% endif %}
<meta property="og:site_name" content="{{ SITENAME }}" />
<meta property="og:type" content="article"/>
<meta property="og:title" content="{{ article.title|striptags|escape }}"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
<meta property="og:description" content="{{ article.summary|striptags|escape }}"/>
<meta property="article:published_time" content="{{ article.date.strftime("%Y-%m-%d") }}" />
{% if article.category %}
<meta property="article:section" content="{{ article.category }}" />
{% endif %}
{% for tag in article.tags %}
<meta property="article:tag" content="{{ tag }}" />
{% endfor %}
{% if article.author %}
<meta property="article:author" content="{{ article.author }}" />
{% elif AUTHOR %}
<meta property="article:author" content="{{ AUTHOR }}" />
{% endif %}
{% if article.og_image %}
<meta property="og:image"
content="{{ SITEURL }}/{{ article.og_image }}"/>
{% elif OPEN_GRAPH_IMAGE %}
<meta property="og:image"
content="{{ SITEURL }}/{{ OPEN_GRAPH_IMAGE }}"/>
{% endif %}
{% endif %}
{% endblock %}

{% block canonical_rel %}
<link rel="canonical" href="{{ SITEURL }}/{{ article.url }}">
{% endblock %}

{% block breadcrumbs %}
{% if DISPLAY_BREADCRUMBS %}
{% if DISPLAY_CATEGORY_IN_BREADCRUMBS %}
<ol class="breadcrumb">
<li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
<li><a href="{{ SITEURL }}/{{ article.category.url }}" title="{{ article.category }}">{{ article.category }}</a></li>
<li class="active">{{ article.title }}</li>
</ol>
{% else %}
<ol class="breadcrumb">
<li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
<li class="active">{{ article.title }}</li>
</ol>
{% endif %}
{% endif %}
{% endblock %}

{% block content %}
<section id="content">
<article>
<header class="page-header">
<h1>
<a href="{{ SITEURL }}/{{ article.url }}"
rel="bookmark"
title="Permalink to {{ article.title|striptags }}">
{{ article.title }}
</a>
</h1>
<p>
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="tall"></div>
</p>
</header>
<div class="entry-content">
<div class="panel">
<div class="panel-body">
{% include "includes/article_info.html" %}
</div>
</div>
{{ article.content }}
</div>
<!-- /.entry-content -->
{% include 'includes/related-posts.html' %}
{% include 'includes/addthis.html' %}
{% include 'includes/shariff.html' %}
{% include 'includes/comments.html' %}
</article>
</section>

{% endblock %}

{% block scripts %}
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

{% if ADDTHIS_PROFILE %}
{% if ADDTHIS_DATA_TRACK_ADDRESSBAR|default(true) %}
<script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script>
{% endif %}
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PROFILE }}"></script>
{% endif %}
{% if SHARIFF|default(false) %}
<!-- add shariff support -->
<script src="{{ SITEURL }}/theme/js/shariff.min.js"></script>
{% endif %}
{% endblock %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions themes/.gitignore

This file was deleted.

Loading

0 comments on commit 153448e

Please sign in to comment.