Comments (8)
I think this is a good idea. Just having the "-v" option dump out the event details before doing any google calendar magic will be a nice change.
from gcalcli.
Oh yeah - that's the best solution. I w as actually thinking about adding a different command. But this idea is much better. The import -v option doesn't need to do any Google stuff unless the user actually chooses [i]mport.
from gcalcli.
I've had a go at patching this myself. I couldn't get it to work using just the -v option, because there could be mulitple events, and after printing the details of each event, there is the option to import - so it's not that simple.
So instead I added an import -d option to dump the ICS details and exit. I couldn't use ImportICS / CreateEventFromVOBJ as it was because they require the gcalcli class (so the google authentication must be done), so I moved the verbose output parts into a common function just to print the event details. It's not ideal, since this duplicates the logic in CreateEventFromVOBJ, but couldn't think of a better way to do.
I'm sure you guys can do a better job, but I can send a pull request if you want?
from gcalcli.
Send a pull request and we can review. I've been making a number of changes
to that code anyway to support The icalendar library and other formats.
On Wednesday, February 27, 2013, Michael Maddern wrote:
I've had a go at patching this myself. I couldn't get it to work using
just the -v option, because there could be mulitple events, and after
printing the details of each event, there is the option to import - so it's
not that simple.So instead I added an import -d option to dump the ICS details and exit. I
couldn't use ImportICS / CreateEventFromVOBJ as it was because they require
the gcalcli class (so the google authentication must be done), so I moved
the verbose output parts into a common function just to print the event
details. It's not ideal, since this duplicates the logic in
CreateEventFromVOBJ, but couldn't think of a better way to do.I'm sure you guys can do a better job, but I can send a pull request if
you want?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/63#issuecomment-14175035
.
from gcalcli.
Ok I've sent pull request.
I've been having problems importing some ICS files (not related to changes I've made). I was going to raise a defect for it, but I can leave it for now if you're making changes to how this works, and retest it again after.
from gcalcli.
There are known issues with certain ICS files that come from vobject. For example a comma in a description actually has special meaning that vobject holds strictly to. I am working on a branch that uses icalendar, but that has it's own set of special issues, just seems to be a little more actively developed.
from gcalcli.
Does the new -d option implemented in #67 resolve this for you?
nm. #67 is your pull request so I'm going to go with yes ;-)
from gcalcli.
Sorry for replying to this so late, but I only just pulled these changes. The -d option is working great. Thanks!
from gcalcli.
Related Issues (20)
- when importing a iCS file gcalcli says 'Python vobject module not installed!' even though it is installed HOT 1
- Google Calendar
- Imports are disorganized
- Hourly authentication "The authentication flow has completed."
- Use of summaryOverride HOT 1
- README.md discrepancy
- Importing a .vcs with no events crashes gcalcli
- Formatting and first day of week
- Add option to combine default reminders with custom reminders
- --lineart unicode TypeError: can't concat str to bytes
- App 'gcalcli' is blocked - The out-of-band (OOB) flow has been blocked HOT 8
- DeprecationWarning
- Editing based on unique identifiers?
- Editing an recurring event seems to copy it instead of editing the selected "event instance"
- List Availability
- Access blocked: Authorization Error HOT 1
- HELP: What do I specify? (Documention missing bug)
- HELP!!! GCalCli stopped working! I can only list calendars, and cannot do anything else HOT 11
- Out-Of-Band (OOB) flow
- FEATURE REQUEST: Hooks into `eventTypes` (e.g. "Out of Office" or "Focus Time")
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcalcli.