Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jigartarpara committed Sep 19, 2018
0 parents commit 900d115
Show file tree
Hide file tree
Showing 16 changed files with 211 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
*.pyc
*.egg-info
*.swp
tags
bookingapp/docs/current
18 changes: 18 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include MANIFEST.in
include requirements.txt
include *.json
include *.md
include *.py
include *.txt
recursive-include bookingapp *.css
recursive-include bookingapp *.csv
recursive-include bookingapp *.html
recursive-include bookingapp *.ico
recursive-include bookingapp *.js
recursive-include bookingapp *.json
recursive-include bookingapp *.md
recursive-include bookingapp *.png
recursive-include bookingapp *.py
recursive-include bookingapp *.svg
recursive-include bookingapp *.txt
recursive-exclude bookingapp *.pyc
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Booking Service App

Booking Any type of Service

#### License

MIT
5 changes: 5 additions & 0 deletions bookingapp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

__version__ = '0.0.1'

Empty file.
Empty file added bookingapp/config/__init__.py
Empty file.
14 changes: 14 additions & 0 deletions bookingapp/config/desktop.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _

def get_data():
return [
{
"module_name": "Booking Service App",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("Booking Service App")
}
]
11 changes: 11 additions & 0 deletions bookingapp/config/docs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""
Configuration for docs
"""

# source_link = "https://github.com/[org_name]/bookingapp"
# docs_base_url = "https://[org_name].github.io/bookingapp"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"

def get_context(context):
context.brand_html = "Booking Service App"
122 changes: 122 additions & 0 deletions bookingapp/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version

app_name = "bookingapp"
app_title = "Booking Service App"
app_publisher = "Jigar Tarpara"
app_description = "Booking Any type of Service"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "[email protected]"
app_license = "MIT"

# Includes in <head>
# ------------------

# include js, css files in header of desk.html
# app_include_css = "/assets/bookingapp/css/bookingapp.css"
# app_include_js = "/assets/bookingapp/js/bookingapp.js"

# include js, css files in header of web template
# web_include_css = "/assets/bookingapp/css/bookingapp.css"
# web_include_js = "/assets/bookingapp/js/bookingapp.js"

# include js in page
# page_js = {"page" : "public/js/file.js"}

# include js in doctype views
# doctype_js = {"doctype" : "public/js/doctype.js"}
# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}

# Home Pages
# ----------

# application home page (will override Website Settings)
# home_page = "login"

# website user home page (by Role)
# role_home_page = {
# "Role": "home_page"
# }

# Website user home page (by function)
# get_website_user_home_page = "bookingapp.utils.get_home_page"

# Generators
# ----------

# automatically create page for each record of this doctype
# website_generators = ["Web Page"]

# Installation
# ------------

# before_install = "bookingapp.install.before_install"
# after_install = "bookingapp.install.after_install"

# Desk Notifications
# ------------------
# See frappe.core.notifications.get_notification_config

# notification_config = "bookingapp.notifications.get_notification_config"

# Permissions
# -----------
# Permissions evaluated in scripted ways

# permission_query_conditions = {
# "Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
# }
#
# has_permission = {
# "Event": "frappe.desk.doctype.event.event.has_permission",
# }

# Document Events
# ---------------
# Hook on document methods and events

# doc_events = {
# "*": {
# "on_update": "method",
# "on_cancel": "method",
# "on_trash": "method"
# }
# }

# Scheduled Tasks
# ---------------

# scheduler_events = {
# "all": [
# "bookingapp.tasks.all"
# ],
# "daily": [
# "bookingapp.tasks.daily"
# ],
# "hourly": [
# "bookingapp.tasks.hourly"
# ],
# "weekly": [
# "bookingapp.tasks.weekly"
# ]
# "monthly": [
# "bookingapp.tasks.monthly"
# ]
# }

# Testing
# -------

# before_tests = "bookingapp.install.before_tests"

# Overriding Whitelisted Methods
# ------------------------------
#
# override_whitelisted_methods = {
# "frappe.desk.doctype.event.event.get_events": "bookingapp.event.get_events"
# }

1 change: 1 addition & 0 deletions bookingapp/modules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Booking Service App
Empty file added bookingapp/patches.txt
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
License: MIT
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
frappe
25 changes: 25 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re, ast

with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')

# get version from __version__ variable in bookingapp/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')

with open('bookingapp/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))

setup(
name='bookingapp',
version=version,
description='Booking Any type of Service',
author='Jigar Tarpara',
author_email='[email protected]',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=install_requires
)

0 comments on commit 900d115

Please sign in to comment.