Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven(a)btinternet.com>
Committer: Nick Treleaven <nick.treleaven(a)btinternet.com>
Date: Thu, 31 Oct 2013 13:54:31 UTC
Commit: 6a19a4488d7037591083001f11f9f4fe2065aafa
https://github.com/geany/geany/commit/6a19a4488d7037591083001f11f9f4fe2065a…
Log Message:
-----------
Add info on how g_spawn is broken on Windows
Modified Paths:
--------------
src/win32.c
Modified: src/win32.c
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -1023,6 +1023,9 @@ gboolean _broken_win32_spawn(const gchar *dir, gchar **argv, gchar **env, GSpawn
}
+/* Note: g_spawn is broken for receiving both stdio and stderr e.g. when
+ * running make and there are compile errors. See glib/giowin32.c header
+ * comment about Windows bugs, e.g. #338943 */
/* Simple replacement for _broken_win32_spawn().
* flags is ignored, G_SPAWN_SEARCH_PATH is implied.
* Don't call this function directly, use utils_spawn_[a]sync() instead.
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger(a)uvena.de>
Committer: Enrico Tröger <enrico.troeger(a)uvena.de>
Date: Sun, 09 Jun 2013 10:58:37 UTC
Commit: 96d4000f66db7dd702c862f8b3a221963448eb5a
https://github.com/geany/www.geany.org/commit/96d4000f66db7dd702c862f8b3a22…
Log Message:
-----------
Implement /sitemap.xml for NightlyBuilds and Pastebin apps
Introduce StaticSitemap() which reads a Site's URLConf and generates a Sitemap
for all URLs which can be reversed without any arguments.
Modified Paths:
--------------
geany/sitemaps.py
nightlybuilds/urls.py
pastebin/urls.py
Modified: geany/sitemaps.py
61 files changed, 59 insertions(+), 2 deletions(-)
===================================================================
@@ -3,15 +3,19 @@
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
-#
+#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from django.contrib import sitemaps
+from django.contrib.sites.models import Site
+from django.core import urlresolvers
+from django_hosts.reverse import get_host
from mezzanine.blog.models import BlogPost
from mezzanine.core.sitemaps import DisplayableSitemap
@@ -34,3 +38,56 @@ def priority(self, obj):
return 1
else:
return 0.5
+
+
+########################################################################
+class StaticSitemap(sitemaps.Sitemap):
+ """Return the static sitemap items"""
+ priority = 0.5
+
+ #----------------------------------------------------------------------
+ def __init__(self, domain, patterns):
+ self._domain = domain
+ self._patterns = patterns
+ self._site = None
+ self._host = None
+ self._items = {}
+ self._get_site_and_host()
+ self._initialize()
+
+ #----------------------------------------------------------------------
+ def _get_site_and_host(self):
+ self._site = Site.objects.get(domain=self._domain)
+ self._host = get_host(self._domain)
+
+ #----------------------------------------------------------------------
+ def _initialize(self):
+ for pattern in self._patterns:
+ if getattr(pattern, 'name', None) is not None:
+ url_resolved = self._resolve_url(pattern.name)
+ if url_resolved:
+ self._items[pattern.name] = url_resolved
+
+ #----------------------------------------------------------------------
+ def _resolve_url(self, url):
+ try:
+ return urlresolvers.reverse(url, urlconf=self._host.urlconf)
+ except urlresolvers.NoReverseMatch:
+ return None
+
+ #----------------------------------------------------------------------
+ def items(self):
+ return self._items.keys()
+
+ #----------------------------------------------------------------------
+ def changefreq(self, obj):
+ return 'monthly'
+
+ #----------------------------------------------------------------------
+ def location(self, obj):
+ return self._items[obj]
+
+ #----------------------------------------------------------------------
+ def get_urls(self, page=1, site=None, protocol=None):
+ # pass our site to the parent as we know better which site we are on
+ return super(StaticSitemap, self).get_urls(page, self._site, protocol)
Modified: nightlybuilds/urls.py
12 files changed, 10 insertions(+), 2 deletions(-)
===================================================================
@@ -3,17 +3,18 @@
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
-#
+#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.conf.urls import url, patterns
from nightlybuilds.views import NightlyBuildsView
+from geany.sitemaps import StaticSitemap
urlpatterns = patterns('',
@@ -22,3 +23,10 @@
url(r'^$', NightlyBuildsView.as_view(), name='home'),
)
+
+# Sitemap framework
+sitemaps = {"sitemaps": {"all": StaticSitemap('nightly.geany.org', urlpatterns)}}
+urlpatterns += patterns('',
+ # use our custom sitemap implementation
+ url(r"^sitemap\.xml$", 'django.contrib.sitemaps.views.sitemap', sitemaps)
+)
Modified: pastebin/urls.py
10 files changed, 9 insertions(+), 1 deletions(-)
===================================================================
@@ -13,8 +13,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from django.conf.urls import url, patterns, include
+from django.conf.urls import url, patterns
from django.views.generic.base import TemplateView
+from geany.sitemaps import StaticSitemap
urlpatterns = patterns('',
@@ -32,3 +33,10 @@
url(r'^(?P<snippet_id>[a-zA-Z0-9]+)/delete/$', 'pastebin.views.snippet_delete', name='snippet_delete'),
url(r'^(?P<snippet_id>[a-zA-Z0-9]+)/raw/$', 'pastebin.views.snippet_details', {'template_name': 'pastebin/snippet_details_raw.html', 'is_raw': True}, name='snippet_details_raw'),
)
+
+# Sitemap framework
+sitemaps = {"sitemaps": {"all": StaticSitemap('pastebin.geany.org', urlpatterns)}}
+urlpatterns += patterns('',
+ # use our custom sitemap implementation
+ url(r"^sitemap\.xml$", 'django.contrib.sitemaps.views.sitemap', sitemaps)
+)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger(a)uvena.de>
Committer: Enrico Tröger <enrico.troeger(a)uvena.de>
Date: Wed, 05 Jun 2013 17:12:47 UTC
Commit: ea338ea0bb3e47a123dd272ea486017a5d68a29b
https://github.com/geany/www.geany.org/commit/ea338ea0bb3e47a123dd272ea4860…
Log Message:
-----------
Add release_date to LatestVersion model
Modified Paths:
--------------
latest_version/fixtures/first_version.json
latest_version/models.py
Modified: latest_version/fixtures/first_version.json
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -3,10 +3,10 @@
"model": "latest_version.latestversion",
"pk": 1,
"fields": {
- "version": "1.23",
- "github_link": "/commits/1.23.0"
+ "version": "1.23.1",
+ "github_link": "/commits/1.23.1",
+ "release_date": "2013-05-19T13:59:00Z"
}
}
]
-
Modified: latest_version/models.py
6 files changed, 4 insertions(+), 2 deletions(-)
===================================================================
@@ -3,12 +3,12 @@
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
-#
+#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -20,6 +20,8 @@ class LatestVersion(models.Model):
version = models.CharField(max_length=50, verbose_name=u'Latest Geany version')
github_link = models.CharField(max_length=255, verbose_name=u'Link to the Commits page on Github (everything after https://github.com/geany/geany/)')
+ release_date = models.DateTimeField()
+
########################################################################
class Meta:
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger(a)uvena.de>
Committer: Enrico Tröger <enrico.troeger(a)uvena.de>
Date: Wed, 05 Jun 2013 16:44:39 UTC
Commit: 9d5e69e9afdcbfd207b7dd5c0461a63578b29742
https://github.com/geany/www.geany.org/commit/9d5e69e9afdcbfd207b7dd5c0461a…
Log Message:
-----------
Allow syncdb for non-nightlybuilds apps
Modified Paths:
--------------
nightlybuilds/database_routers.py
Modified: nightlybuilds/database_routers.py
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -3,12 +3,12 @@
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
-#
+#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -49,4 +49,4 @@ def allow_relation(self, obj1, obj2, **hints):
#----------------------------------------------------------------------
def allow_syncdb(self, db, model):
- return False
+ return model._meta.app_label != 'nightlybuilds'
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sun, 20 Oct 2013 13:19:56 UTC
Commit: ef331759b01a415ba4d09b4940aa052f9ceedf7c
https://github.com/geany/geany/commit/ef331759b01a415ba4d09b4940aa052f9ceed…
Log Message:
-----------
If we write C99, we better make sure we compile as such
Modified Paths:
--------------
configure.ac
Modified: configure.ac
1 files changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -24,6 +24,7 @@ fi
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
+AC_PROG_CC_C99
AC_PROG_CXX
# check for C++ compiler explicitly and fail if none is found, do this check
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Matthew Brush <matt(a)geany.org>
Committer: Matthew Brush <matt(a)geany.org>
Date: Sun, 20 Oct 2013 12:59:21 UTC
Commit: 131b608d5b430df6bb960ecdd63611cb5cda4be8
https://github.com/geany/geany/commit/131b608d5b430df6bb960ecdd63611cb5cda4…
Log Message:
-----------
Update HACKING a bit for C99 standard
Modified Paths:
--------------
HACKING
Modified: HACKING
16 files changed, 7 insertions(+), 9 deletions(-)
===================================================================
@@ -165,13 +165,10 @@ to set warning options (as well as anything else e.g. -g -O2).
* Enable warnings - for gcc use '-Wall -W' (and optionally
-Wno-unused-parameter to avoid unused parameter warnings in Glade
callbacks).
-* You should try to write ISO C90 code for portability, so always
+* You should try to write ISO C99 code for portability, so always
use C ``/* */`` comments and function_name(void) instead of
function_name(). This is for compatibility with various Unix-like
- compilers. You should use -ansi to help check this.
- Note that MIO (tagmanager/mio) requires ``MIO_FORCE_ANSI``
- preprocessor constant to be defined to build with ``-ansi``, so you
- should add ``-DMIO_FORCE_ANSI`` together with ``-ansi``.
+ compilers. You should use -std=c99 to help check this.
.. tip::
Remember for gcc you need to enable optimization to get certain
@@ -187,9 +184,9 @@ Style
When editing with Geany set preference files->Strip trailing spaces
and tabs.
* Use the multiline comment ``/* */`` to comment small blocks of code,
- functions descriptions or longer explanations of code, etc. C++ single
- line comments will cause portability issues. The more comments are in
- your code the better. (See also ``scripts/fix-cxx-comments.pl`` in Git).
+ functions descriptions or longer explanations of code, etc. The more
+ comments are in your code the better. (See also
+ ``scripts/fix-cxx-comments.pl`` in Git).
* Lines should not be longer than about 100 characters and after 100
characters the lines should be wrapped and indented once more to
show that the line is continued.
@@ -200,7 +197,8 @@ Style
* 2-operand operators should have a space each side.
* Function bodies should have 2 blank newlines after them.
* Align braces together on separate lines.
-* Don't put assignments in 'if/while/etc' expressions.
+* Don't put assignments in 'if/while/etc' expressions except for loops,
+ for example ``for (int i = 0; i < some_limit; i++)``.
* if statements without brace bodies should have the code on a separate
line, then a blank line afterwards.
* Use braces after if/while statements if the body uses another
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).