Change "calendar" into "collection" when needed.
WARNING: the default folders storing calendars/addressbooks have been changed
This commit is contained in:
		
							
								
								
									
										14
									
								
								config
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								config
									
									
									
									
									
								
							@@ -30,7 +30,7 @@ key = /etc/apache2/ssl/server.key
 | 
			
		||||
[encoding]
 | 
			
		||||
# Encoding for responding requests
 | 
			
		||||
request = utf-8
 | 
			
		||||
# Encoding for storing local calendars
 | 
			
		||||
# Encoding for storing local collections
 | 
			
		||||
stock = utf-8
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -39,9 +39,9 @@ stock = utf-8
 | 
			
		||||
# Value: None | htpasswd | LDAP | PAM | courier
 | 
			
		||||
type = None
 | 
			
		||||
 | 
			
		||||
# Usernames used for public calendars, separated by a comma
 | 
			
		||||
# Usernames used for public collections, separated by a comma
 | 
			
		||||
public_users = public
 | 
			
		||||
# Usernames used for private calendars, separated by a comma
 | 
			
		||||
# Usernames used for private collections, separated by a comma
 | 
			
		||||
private_users = private
 | 
			
		||||
 | 
			
		||||
# Htpasswd filename
 | 
			
		||||
@@ -75,11 +75,11 @@ courier_socket =
 | 
			
		||||
# Storage backend
 | 
			
		||||
type = filesystem
 | 
			
		||||
 | 
			
		||||
# Folder for storing local calendars, created if not present
 | 
			
		||||
filesystem_folder = ~/.config/radicale/calendars
 | 
			
		||||
# Folder for storing local collections, created if not present
 | 
			
		||||
filesystem_folder = ~/.config/radicale/collections
 | 
			
		||||
 | 
			
		||||
# Git repository for storing local calendars, created if not present
 | 
			
		||||
filesystem_folder = ~/.config/radicale/calendars
 | 
			
		||||
# Git repository for storing local collections, created if not present
 | 
			
		||||
filesystem_folder = ~/.config/radicale/collections
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
[logging]
 | 
			
		||||
 
 | 
			
		||||
@@ -111,7 +111,7 @@ def run():
 | 
			
		||||
    atexit.register(cleanup)
 | 
			
		||||
    radicale.log.LOGGER.info("Starting Radicale")
 | 
			
		||||
 | 
			
		||||
    # Create calendar servers
 | 
			
		||||
    # Create collection servers
 | 
			
		||||
    servers = []
 | 
			
		||||
    server_class = radicale.HTTPSServer if options.ssl else radicale.HTTPServer
 | 
			
		||||
    shutdown_program = threading.Event()
 | 
			
		||||
 
 | 
			
		||||
@@ -65,9 +65,9 @@ INITIAL_CONFIG = {
 | 
			
		||||
    "storage": {
 | 
			
		||||
        "type": "filesystem",
 | 
			
		||||
        "filesystem_folder":
 | 
			
		||||
            os.path.expanduser("~/.config/radicale/calendars"),
 | 
			
		||||
            os.path.expanduser("~/.config/radicale/collections"),
 | 
			
		||||
        "git_folder":
 | 
			
		||||
            os.path.expanduser("~/.config/radicale/calendars")},
 | 
			
		||||
            os.path.expanduser("~/.config/radicale/collections")},
 | 
			
		||||
    "logging": {
 | 
			
		||||
        "config": "/etc/radicale/logging",
 | 
			
		||||
        "debug": "False",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							@@ -58,7 +58,7 @@ setup(
 | 
			
		||||
    packages=["radicale", "radicale.acl", "radicale.storage"],
 | 
			
		||||
    provides=["radicale"],
 | 
			
		||||
    scripts=["bin/radicale"],
 | 
			
		||||
    keywords=["calendar", "CalDAV"],
 | 
			
		||||
    keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
 | 
			
		||||
    classifiers=[
 | 
			
		||||
        "Development Status :: 4 - Beta",
 | 
			
		||||
        "Environment :: Console",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user