[fedocal] #7: Add a setup.py
by fedocal
#7: Add a setup.py
-------------------------+-------------------------
Reporter: pingou | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 0.1.0
Component: fedocal | Version: development
Keywords: |
-------------------------+-------------------------
We don't provide any kind of install script at the moment, having a
setup.py would be nice
--
Ticket URL: <https://fedorahosted.org/fedocal/ticket/7>
fedocal <https://fedorahosted.org/fedocal>
A web-based calendar application for Fedora
10 years, 1 month
[fedocal] master: Missing JS file... (cfd7c94)
by Johan Cwiklinski
Repository : http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
>---------------------------------------------------------------
commit cfd7c94bca9f39232de5541e57d847581596d85b
Author: Johan Cwiklinski <johan(a)x-tnd.be>
Date: Wed Nov 28 19:50:16 2012 +0100
Missing JS file...
>---------------------------------------------------------------
fedocal/static/jquery-ui-timespinner.js | 35 +++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/fedocal/static/jquery-ui-timespinner.js b/fedocal/static/jquery-ui-timespinner.js
new file mode 100644
index 0000000..c808d64
--- /dev/null
+++ b/fedocal/static/jquery-ui-timespinner.js
@@ -0,0 +1,35 @@
+// define additional culture information for a possibly existing culture
+Globalize.addCultureInfo( "fedocal", {
+ calendars: {
+ standard: {
+ patterns: {
+ t: 'HH:mm'
+ }
+ }
+ }
+});
+Globalize.culture("fedocal");
+
+$.widget( "ui.timespinner", $.ui.spinner, {
+ options: {
+ // half an hour
+ step: 30 * 60 * 1000,
+ // hours
+ page: 60
+ },
+
+ _parse: function( value ) {
+ if ( typeof value === "string" ) {
+ // already a timestamp
+ if ( Number( value ) == value ) {
+ return Number( value );
+ }
+ return +Globalize.parseDate( value );
+ }
+ return value;
+ },
+
+ _format: function( value ) {
+ return Globalize.format( new Date(value), "t" );
+ }
+});
10 years, 4 months
[fedocal] master: Make the time look like HH:MM when editing a meeting (b36c92b)
by pingou@fedorahosted.org
Repository : http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
>---------------------------------------------------------------
commit b36c92b7827b1eb7a3ac8a4622763c23b0327896
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Nov 28 19:44:22 2012 +0100
Make the time look like HH:MM when editing a meeting
>---------------------------------------------------------------
fedocal/forms.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fedocal/forms.py b/fedocal/forms.py
index 913c6cd..a4dac15 100644
--- a/fedocal/forms.py
+++ b/fedocal/forms.py
@@ -149,8 +149,8 @@ class AddMeetingForm(wtf.Form):
self.meeting_name.data = meeting.meeting_name
self.meeting_date.data = startdt.date()
self.meeting_date_end.data = meeting.meeting_date_end
- self.meeting_time_start.data = startdt.time()
- self.meeting_time_stop.data = stopdt.time()
+ self.meeting_time_start.data = startdt.time().strftime('%H:%M')
+ self.meeting_time_stop.data = stopdt.time().strftime('%H:%M')
self.information.data = meeting.meeting_information
# You are not allowed to remove yourself from the managers.
meeting_manager = meeting.meeting_manager.replace(
10 years, 4 months
[fedocal] master: Add JQuery UI time spinner (c032135)
by Johan Cwiklinski
Repository : http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
>---------------------------------------------------------------
commit c032135fc274058a62ab68b87305672ec703c6f1
Author: Johan Cwiklinski <johan(a)x-tnd.be>
Date: Wed Nov 28 19:33:04 2012 +0100
Add JQuery UI time spinner
>---------------------------------------------------------------
Diff suppressed because of size. To see it, use:
git diff --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol ^c032135fc274058a62ab68b87305672ec703c6f1~1 c032135fc274058a62ab68b87305672ec703c6f1
10 years, 4 months
[fedocal] master: Implement time spinner on meeting add/edition (3914573)
by Johan Cwiklinski
Repository : http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
>---------------------------------------------------------------
commit 3914573e6299d6b9a664da98c8ee58d0c9481406
Author: Johan Cwiklinski <johan(a)x-tnd.be>
Date: Wed Nov 28 19:34:44 2012 +0100
Implement time spinner on meeting add/edition
>---------------------------------------------------------------
fedocal/templates/add_meeting.html | 9 +++++++++
fedocal/templates/edit_meeting.html | 9 +++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/fedocal/templates/add_meeting.html b/fedocal/templates/add_meeting.html
index 10043ee..5201973 100644
--- a/fedocal/templates/add_meeting.html
+++ b/fedocal/templates/add_meeting.html
@@ -48,6 +48,14 @@
{% block jscripts %}
{{ super() }}
+<script type="text/javascript"
+ src="{{ url_for('static',
+ filename='globalize.js') }}">
+</script>
+<script type="text/javascript"
+ src="{{ url_for('static',
+ filename='jquery-ui-timespinner.js') }}">
+</script>
<script type="text/javascript">
$(function(){
$('#meeting_date').datepicker({
@@ -56,6 +64,7 @@
$('#end_repeats').datepicker({
dateFormat: "yy-mm-dd",
});
+ $('#meeting_time_start,#meeting_time_stop').val('8:00').timespinner();
});
</script>
{% endblock %}
diff --git a/fedocal/templates/edit_meeting.html b/fedocal/templates/edit_meeting.html
index 62d1a41..8328753 100644
--- a/fedocal/templates/edit_meeting.html
+++ b/fedocal/templates/edit_meeting.html
@@ -58,6 +58,14 @@
{% block jscripts %}
{{ super() }}
+<script type="text/javascript"
+ src="{{ url_for('static',
+ filename='globalize.js') }}">
+</script>
+<script type="text/javascript"
+ src="{{ url_for('static',
+ filename='jquery-ui-timespinner.js') }}">
+</script>
<script type="text/javascript">
$(function(){
$('#meeting_date').datepicker({
@@ -66,6 +74,7 @@
$('#end_repeats').datepicker({
dateFormat: "yy-mm-dd",
});
+ $('#meeting_time_start,#meeting_time_stop').timespinner();
});
</script>
{% endblock %}
10 years, 4 months